可以在單個html文件或單個javascript文件中使用多少個$(document).ready()
函數?單個html文件或javascript文件中有多少個document.ready?
$(document).ready(function(){
alert("first document ready");
//do some action here
});
$(document).ready(function(){
alert("second document ready");
//do some action here too
});
如果我們可以使用無限,它們將如何被調用?他們會一行一行地執行還是有任何調用它的算法?
已有9,000多家一些參考.... 。 –