谁能解释一下这段代码的具体作用。我大体知道是解决变量冲突,namespase相关的东西(function(factory){if(typeofdefine==='function'&&define.amd){define(['jquery'],factory);}else{factory(window.jQuery||window.Zepto||window.$);};}(function($){//具体代码}
(function(factory){if(typeofdefine==='function'&&define.amd){define(['jquery'],factory);}else{factory(window.jQuery||window.Zepto||window.$);};}(function($){//具体代码}
if(typeofdefine==='function'&&define.amd){define(['jquery'],factory);}else{factory(window.jQuery||window.Zepto||window.$);};}(function($){//具体代码}
define(['jquery'],factory);}else{factory(window.jQuery||window.Zepto||window.$);};}(function($){//具体代码}
}else{factory(window.jQuery||window.Zepto||window.$);};}(function($){//具体代码}
factory(window.jQuery||window.Zepto||window.$);};}(function($){//具体代码}
};}(function($){//具体代码}
}(function($){//具体代码}
//具体代码}
}
江户川乱折腾
犯罪嫌疑人X
相关分类