js 工作简单封装常用的思想写法。面向对象

;(function($,window){
function commonYzzFn(){
var _t = this;
_t.init = function(param){
var before_foo = param.before;
var after_foo = param.after;
before_foo(function(pass){
var json = 123;
after_foo(json);
});
}

return this;
}
window.commonYzzFn = commonYzzFn();
})(jQuery,window)

猜你喜欢

转载自www.cnblogs.com/zjhuanjing/p/11800444.html