“MediaWiki:Common.js”版本间的差异
来自企业管理软件文档中心
第1行: | 第1行: | ||
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */ | /* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */ | ||
+ | alert("1); | ||
var text1 = document.getElementById("wpTextbox1"); | var text1 = document.getElementById("wpTextbox1"); | ||
− | var mynode = document. | + | var mynode = document.createTextNode("hello,lato"); |
text1.appendChild(mynode); | text1.appendChild(mynode); | ||
+ | alert("2"); |
2014年8月11日 (一) 17:34的版本
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */ alert("1); var text1 = document.getElementById("wpTextbox1"); var mynode = document.createTextNode("hello,lato"); text1.appendChild(mynode); alert("2");