停止所有的JavaScript执行 [英] Stopping all javascript execution
问题描述
是否有相当于javascript停止所有javascript(包括以后的回调ajax请求,超时等)的php die()函数运行?
Is there an equivalent to the php die() function for javascript that stops all javascript (including future callbacks for ajax requests, timeouts etc...) from running?
(注意:我不能在调试器中使用断点,因为ie8中的错误,调试器阻止您在断点时向上/向下滚动页面;为了能够看到错误发生在哪个时刻需要在代码停止时滚动页面)
(NOTE: I can't use breakpoints in the debugger as the bug is in ie8 and the debugger prevents you from scrolling up/down the page while at a breakpoint; to be able to see at which point the bug is occurring I need to be able to scroll the page while the code is stopped)
推荐答案
是否有等效到php die()函数javascript停止所有的javascript(包括以后的回调ajax请求,超时等...)运行?
Is there an equivalent to the php die() function for javascript that stops all javascript (including future callbacks for ajax requests, timeouts etc...) from running?
不,
真的是这么说。
这篇关于停止所有的JavaScript执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!