;(function test($){
$.extend({
hello : function(a,b){console.log(a+"||"+b)}
});
})(jQuery);
//纯js封装
var my=my||{};
my.prorotype={
init:function(obj,i){
alert("hello");
},
hello:function(obj){
console.log("hello"+obj);
}
$.extend({
hello : function(a,b){console.log(a+"||"+b)}
});
})(jQuery);
//纯js封装
var my=my||{};
my.prorotype={
init:function(obj,i){
alert("hello");
},
hello:function(obj){
console.log("hello"+obj);
}
}
//匿名
var klm=klm ||{};
klm = (function(){
klm.init = function(){
};
})