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

前端 未结 12 1086
一向
一向 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:22

    I don't think that you should really be polling for elements the way you are.

    The document ready event calls as soon as the browser has loaded enough for you to be able to manipulate the page, so you should just do your DOM processing in the $(document).ready() block.

提交回复
热议问题