$(window).load() in IE?

前端 未结 3 1249
傲寒
傲寒 2020-12-18 13:48

Recently I ran into a mysterious problem that IE (6-8) is keeping throwing me an error. I don\'t know if this is the problem, but I think it is.

Open up the F12 deve

3条回答
  •  时光取名叫无心
    2020-12-18 14:35

    The latest jQuery (1.7.1) with IE10 and IE9 does not produce such an error for me.

    As a side note; If you wish to execute something when the dom is ready; Try this way;

    $(function(){
         alert("Wont able to see me");
    });
    

    I believe this is the standard convention for attaching a function to domready event.

    Reference: jQuery Documentation

提交回复
热议问题