如果最后一个按钮是特定按钮,我尝试仅显示一个按钮,请参见我的代码:
var oldURL = document.referrer;
var sitename = "admin_tool.html";
var x = document.getElementById("myDIV");
if (oldURL === sitename) {
x.style.visibility = "visible"
} else {
x.style.visibility = "hidden"
}
但是它对我不起作用... 任何帮助都非常感谢! 谢谢大家!