欢迎来到MCServerWiki!如果您是第一次来到这里,请点击:创建账户
“MediaWiki:Common.js”的版本间差异
来自MCServerWiki
| 第5行: | 第5行: | ||
username = document.getElementById("pt-userpage").a.innerHtml | username = document.getElementById("pt-userpage").a.innerHtml | ||
alert(username) // test | alert(username) // test | ||
2021年10月16日 (六) 18:59的版本
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */
mw.loader.load('https://wikiplus-app.com/Main.js')
// load user css and js
username = document.getElementById("pt-userpage").a.innerHtml
alert(username) // test