16,874
个编辑
LLWiki正在建设中,欢迎加入我们!
小 |
小 |
||
$dropdown = $('<div>', {class: "inspector-menu", html: options}),
$hints = $('<div>', {class: "inspector-menu"}).on('click', '.inspector-hint', function() {
// 随后再次执行updateHints时会自行stop
}),
prefix = before.match( regexps[ns] )[1];
if (prefix === "") { return; }
mw.timedQuery(api, $.extend({list: 'prefixsearch', pssearch: prefix}, ns > 0 ? {psnamespace: ns} : {}),
wgULS('前缀相符的页面', '前綴相符的頁面')).then(function(r) {
$hints.html( r.query.prefixsearch.map(function(ele) {
|