2017-09-18 38 views

回答

0

假设你的意思是onbeforeunload,这是JavaScript,不会有任何与你的页面链接。相反,在你的页面的末尾添加脚本标记与下面的代码片段:

<script type="text/javascript"> 
window.onbeforeunload = function() { 
    return true; 
}; 
</script> 

this解答获得更多信息。

相关问题