16,874
个编辑
LLWiki正在建设中,欢迎加入我们!
小 |
小 |
||
if (!hash || document.getElementById( hash )) { return; }
const header = $('.mw-headline').filter(function() {
return text == hash || text == decodeURIComponent( hash.replace(/\.(?=[\dA-Z]{2})/g, '%') );
})[0];
if (header) { header.scrollIntoView({ behavior: 'smooth' }); }
|