如何重置语句计数 [英] How to reset statement count
问题描述
大家好,
我们有一个javascript函数,在几个小时内定期调用,但不是连续不断的,最终会开始抛出长时间运行的脚本错误在IE8中。
我认为这个错误意味着已达到500万条陈述。我正在寻找有关如何/何时重置身份计数的信息,除了导航/刷新您的页面。
我尝试使用setTimeout对所有循环进行分块,因为这似乎是我能找到的唯一在线解决方案 - 但我的猜测是针对长时间运行的脚本使用基于时间的算法的其他浏览器更多?
如果有人知道什么重置该语句计数,或者可以指出我的方向非常棒。
非常感谢,b
Anthony。
Bing说....
Hi all,
We have a javascript function that is called regularly over a few hours, but not in constant succession, which eventually starts throwing the long-running script errors in IE8.
I believe this error means that 5 million statements have been reached. I'm looking for information on how/when the statment count is reset, apart from navigating/refreshing your page.
I've tried chunking all loops using setTimeout, as this seems to be the only online solution I can find - but my guess is that is directed more at other browsers that use a time-based algorithm for long running scripts?
If anyone knows what resets that statement count, or could point me in the right direction that would be fantastic.
Many thanks,
Anthony.
Bing says....
这篇关于如何重置语句计数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!