“MediaWiki:Common.js”的版本间差异
来自仁王 wiki
(建立内容为“→这里的任何JavaScript将为所有用户在每次页面载入时加载。: console.log("已触发MediaWiki:Common.js");”的新页面) |
|||
第1行: | 第1行: | ||
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */ | /* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */ | ||
console.log("已触发MediaWiki:Common.js"); | console.log("已触发MediaWiki:Common.js"); | ||
+ | var a = document.createElement("a"); | ||
+ | a.href = "#"; | ||
+ | a.innerText = "返回顶部"; | ||
+ | |||
+ | document.getElementById("page-tools").append(a); |
2021年2月26日 (五) 11:39的版本
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */ console.log("已触发MediaWiki:Common.js"); var a = document.createElement("a"); a.href = "#"; a.innerText = "返回顶部"; document.getElementById("page-tools").append(a);