摘要:
(function( $, jQuery , undefined ) {})(jQuery);为什么要将window和undefined作为参数传给它?因为 ecmascript 执行JS代码是从里到外,因此把全局变量window或jQuery对象传进来,就避免了到外层去寻找,提高效率。undefi... 阅读全文
posted @ 2015-01-22 17:48
上帝的宠儿
阅读(1072)
评论(0)
推荐(0)
浙公网安备 33010602011771号