#方式一:
(function($,w){
var objRegistor = {};
w.Registor = objRegistor;
w.Registor.xxx = function(){};
w.Registor.Init = function (){//初始化
w.Registor.xxx();
};
w.Registor.SubForm = function (){};
w.Registor.loadding = function ()
{
w.Registor.Init();
w.Registor.SubForm();
};
w.Registor.loadding();//加载
})(jQuery,window);
#方式二:
(function (w, $) {
var UserJs = {
Init: function () {
UserJs.userInfo();
},
userInfo: function () {
...
},
Load: function () {
UserJs.Init();
}
};
UserJs.Load();
})(window, jQuery);
jQuery架子
猜你喜欢
转载自blog.csdn.net/qq_38778882/article/details/81304480
今日推荐
周排行