简体   繁体   English

Safari上的无限警报框(带有IOS7的iPad)

[英]Infinite alert boxes on Safari (iPad with IOS7)

I've been testing some JavaScript code with a for loop that iterates a 1000 times and each loop will trigger a window.alert. 我已经使用for循环测试了一些JavaScript代码,该循环重复了1000次,每个循环都会触发window.alert。

Now I was expecting a 'Prevent additional popups' checkbox. 现在,我期待有一个“防止其他弹出窗口”复选框。 But after 150 times of pressing OK i'm losing hope. 但是,在按“确定”按钮150次之后,我失去了希望。 Is there some way to really kill an app? 有什么方法可以真正杀死应用程序? I've also considered reinstalling Safari, but Apple won't allow me to even uninstall the damn browser. 我也考虑过重新安装Safari,但是Apple甚至不允许我卸载该死的浏览器。

Is there a way out? 有出路吗? While waiting for answers I'll keep pressing OK 850 more times... 在等待答案的同时,我将继续按OK 850次...

In the meantime, Command-Option-Escape should allow you to force-quit Safari and stop dealing with popups. 同时,Command-Option-Escape应该允许您强制退出Safari并停止处理弹出窗口。

In the long term, can you post the code, or the offending part of it, so we can figure out why it's going bonkers? 从长远来看,您是否可以发布代码或其中的违规部分,以便我们找出原因呢?

清除浏览历史记录解决了该问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM