MediaWiki:Common.js:修订间差异
外观
![]() |
![]() |
||
第1行: | 第1行: | ||
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */ | /* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */ | ||
mw.loader.load('https://wikiplus-app.com/Main.js') | mw.loader.load('https://wikiplus-app.com/Main.js') | ||
// load user css and js | |||
username = document.getElementById("pt-userpage").a.getAttribute("href") | |||
alert(username) // test |
2021年9月18日 (六) 12:06的版本
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */ mw.loader.load('https://wikiplus-app.com/Main.js') // load user css and js username = document.getElementById("pt-userpage").a.getAttribute("href") alert(username) // test