;(function(window, document, $) { 的作用及解释
在jQuery插件中我们经常看到以下这段代码;(function ( $, window, document, undefined ){ //函数体内具体代码 })(jQuery, window,document); 对于很多初学者来说很难明白这表示什么,下边我将为大家介绍其相应的作用。1、代码最前面的分号,可以防止多个文件压缩合并以为其他文件最后
转载
2016-11-29 09:38:58 ·
3129 阅读 ·
0 评论