注意:在保存之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Internet Explorer:按住Ctrl的同时单击刷新,或按Ctrl-F5
- Opera:前往菜单 → 设置(Mac为Opera → 选项),然后隐私和安全 → 清除浏览数据 → 缓存的图片和文件。
function replaceAll (str, ins, res) {
string = str;
if (ins !== res) {
while (str.search(ins) !== -1) {
string = string.replace(ins, res);
}
return string;
}
else {
return null;
}
}
try {
attr = _.j(replaceAll(_.g("id:mw-pageattr").innerHTML, "\n",""));
}
catch(err) {
document.getElementById("bodyContent").innerHTML += "<p style=\"color:red\"><b>" + replaceAll(err.stack.toString(), "\n", "<br/>") + "</b></p>";
}