怎样把多个jquery插件代码写在一个js文件里
如题,需要怎么办,不知道下面的做法是否正确!插件一:$(function($){$.fn.bwTree=function(settings){vardefaultSett...
如题,需要怎么办,不知道下面的做法是否正确!
插件一:
$(function ($) {
$.fn.bwTree = function (settings) {
var defaultSettings = {
}
settings = $.extend({}, defaultSettings, settings);
return this.each(function () {
});
}
})(jQuery);
紧接着插件二:
$(function ($) {
$.fn.bwTree = function (settings) {
var defaultSettings = {
}
settings = $.extend({}, defaultSettings, settings);
return this.each(function () {
});
}
})(jQuery); 展开
插件一:
$(function ($) {
$.fn.bwTree = function (settings) {
var defaultSettings = {
}
settings = $.extend({}, defaultSettings, settings);
return this.each(function () {
});
}
})(jQuery);
紧接着插件二:
$(function ($) {
$.fn.bwTree = function (settings) {
var defaultSettings = {
}
settings = $.extend({}, defaultSettings, settings);
return this.each(function () {
});
}
})(jQuery); 展开
若以下回答无法解决问题,邀请你更新回答
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询