Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有几次我遇到了我的脚本以高频率发出警报的情况。虽然打开了一个警报模式窗口,但您无法在浏览器中执行任何其他操作。我正在寻找一个附加组件,使我能够杀死或暂停警报模式窗口所属的“线程”。 我应该朝哪个方向看?
如果你使用 alert(); 出于调试目的可能会寻找记录器?
如果您可能使用 Firebug for Firefox(您应该使用 imo),您可以使用 console.log() 或 .debug() 方法直接登录到 Firebug 控制台。
也许这会有所帮助?
按确定后如何停止显示javascript警报