javascript 延时加载

1、SharePoint:   

     ExecuteOrDelayUntilScriptLoaded(test,"SP.js")
     test: function name;
      ExecuteOrDelayUntilScriptLoaded: please see http://msdn.microsoft.com/en-us/library/ff411788.aspx.
 
2、html:
 <script language="javascript" type="text/javascript">
    $(window).bind("load", function () {
        var timeout = setTimeout(function () {
            alert(1);
            }
        }, 0);
    });
 
 </script>
posted @ 2012-03-13 14:47  LeimOO  阅读(197)  评论(0编辑  收藏  举报