mirror of
https://gitee.com/dromara/sa-token.git
synced 2026-02-27 16:50:24 +08:00
增加动态演示图
This commit is contained in:
@@ -81,6 +81,20 @@ var myDocsifyPlugin = function(hook, vm) {
|
||||
// $('.search input').val('');
|
||||
$('.results-panel').removeClass('show');
|
||||
});
|
||||
|
||||
// 点击按钮,加载图片
|
||||
$(document).on('click', '.show-img', function(){
|
||||
var src = $(this).attr('img-src');
|
||||
var img = '<img class="show-to-img" src="' + src + '" />';
|
||||
$(this).after(img);
|
||||
$(this).remove();
|
||||
})
|
||||
|
||||
// 点击按钮,加载图片
|
||||
$(document).on('click', '.show-to-img', function(){
|
||||
open(this.src);
|
||||
})
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user