0
如果我在一個文件中構建多個jquery插件,是否有問題?例如:在一個文件中構建多個jQuery插件?
//first plugin
(function($){
//first plugin code goes here
})(jQuery)
//second plugin
(function($){
//second plugin code goes here
})(jQuery)
//third plugin
(function($){
//third plugin code goes here
})(jQuery)
希望應該沒有問題 –
這正是jQuery UI的構建方式。這就是爲什麼你只下載一個包含所有插件的文件。 – Bobby5193