注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5。
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */
if (location.pathname === '/') {
history.replaceState({}, document.title, 'Index');
}
$(function() {
if (mw.config.get('wgNamespaceNumber', -1) !== -1 && mw.config.get('wgAction', null) === 'view' && !location.search.match(/oldid/)) {
$.getScript('https://zz.bdstatic.com/linksubmit/push.js');
}
var mwContent = $('.mw-parser-output');
if (!mwContent.hasClass('mw-content-ltr') && !mwContent.hasClass('mw-content-rtl')) {
mwContent.addClass('mw-content-' + $('html').attr('dir'));
}
});