我用70ms编程了一个intervall-function。问题是IE说他没有足够的记忆。在另一个案例中,它向我询问了一个退出脚本的对话框,因为页面上的脚本导致Internet Explorer运行缓慢。
那么如何找出毫秒以便不再出现错误?
干杯
// EDIT: CODE:
var chkInterval = setTimeout(function(){
// CHECK some things
// ...
// repeat call
setTimeout(arguments.callee, 70);
});
答案 0 :(得分:0)
显然,不推荐使用argument.callee,并且不保证在IE中可以使用。您的问题可能是因为您正在使用argument.callee引起的。这是一个稍微好一点的方法:
function chkInterval() {
// CHECK some things
// ...
// repeat call
setTimeout(chkInterval, 70);
}