0

当我在同一个窗口中打开一个 URL 然后返回到旧页面时,我收到此错误:

Uncaught ReferenceError: is not defined principal.php:2
Uncaught ReferenceError is not defined

//in principal.php
function btnGoClick(event) {
    window.open('fb.php','_self',false);
}

//in fb.php
function btnBackClick(event) {
    window.open('principal.php','_self',false);
}
4

1 回答 1

0

我已将 window.open 替换为 document.location.href = "link"。有用!

于 2012-09-20T15:21:43.503 回答