16,874
个编辑
LLWiki正在建设中,欢迎加入我们!
小 |
|||
return;
}
$charinsert = $('<div>', {
class: 'inspector-field mw-ajax-loader'}).appendTo('body').draggable()
.contextmenu(function() { $charinsert.hide(); }).on('click', '.mw-charinsert-item', function() {
const $this = $(this),
// 为了充分利用浏览器缓存,这里不使用API
$.get({url: '/zh/' + src, cache: charInsert.cache !== false}).then(function(doc) {
$charinsert.append( $( doc.match(/<body[\s\S]+<\/body>/)[0] ).find( '.mw-parser-output' )
.removeClass( 'mw-ajax-loader' );
});
}) : null),
|