我正在使用 document.URL
函数通过 javascript 加载网页。它在 IE 中运行良好,但是 chrome 和 firefox 会出现问题。什么都没有重新加载。有替代方法吗?
我传递的命令是
document.URL = 'samplepage.php';
最佳答案
location.href="samplepage.php"
关于javascript - document.URL 在 chrome 或 firefox 中不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6327047/