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>
原文地址:https://www.cnblogs.com/LeimOO/p/2393850.html