1
可能重複:
What is the difference between $(document).ready(function() and $(function() ?
What is the difference between these jQuery ready functions?
而且,如果他們執行同樣的目的,如何$(function(){ // js to run })
轉化爲$(document).ready()
?
哇,謝謝。我需要更徹底地搜索。 – dangerChihuahua007
p.s;回答你的問題的第二部分(他們如何繪製); [見這裏](https://github.com/jquery/jquery/blob/255460e4836e86b86f48dd5b7d2a2cbf3f996de2/src/core.js#L174) – Matt
$(函數(){不執行得更快,但我無法解釋的季節吧。$ .fn.ready()是快還是 – atmd