我想知道两者之间的区别。jquery文档准备问题
(function($){
//some console.log code
});
$(document).ready(function()
{
//some console.log code
});
你们会骂我傻,但我不知道为什么它的发生。
那么这里是问题。
当我使用(function($){
然后我看不到任何console.log
的结果,但它显示当我使用document.ready
所有console debug
结果。我正在使用jQuery v1.8.2
。
谢谢。
采取看看这里:http://stackoverflow.com/questions/3908724/what-event-does-jquery-function-fire-on。 – 2013-02-12 05:58:22