我有以下代码:
// Creates a timer to check for elements popping into the dom
timer = setInterval(function ()
{
for (p in pixelTypes)
{
checkElems(pixelTypes[p]);
}
}, 10);
// Add Document finished callback.
$(document).ready(function ()
{
// Document is loaded, so stop trying to find new pixels
clearInterval(timer);
});
在 Firefox 中,它运行良好,但在 IE6 中,我在 $(document).ready 行上收到“Object Expected”错误。
我不知道是什么导致 IE6 无法识别它,此时 jquery 已完全加载。
这是一个已知的问题?