jQuery $(document).ready() failing in IE6

前端 未结 12 1040
一向
一向 2020-12-06 11:50

I have the following code:

// Creates a timer to check for elements popping into the dom            
timer = setInterval(function ()
{          
    for (p i         


        
12条回答
  •  一整个雨季
    2020-12-06 12:10

    You could try the old skool way of checking whether the document is "ready"... Place the script just before the closing tag - I believe it has the same effect as jQuery's 'ready' event - actually, it's probably quicker doing it this way.


    In my experience the "Object expected" error in IE6 shows up because of a syntax error - it's worth putting the script though JSlint, if you haven't already...

提交回复
热议问题