原生JS实现$(document).ready(function(){alert(123); })
默认分类 2011-03-25 00:56:31
- /*||document.readyState == "loaded"||document.readyState == "interactive"*/
- (function(){
- if (document.readyState == "complete") {
- //write ready function here
- window.alert("Document loaded")
- }else window.setTimeout(arguments.callee,50);
- })();
>>
留言评论