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)

posted @ 2019-11-05 18:31  幻景  阅读(225)  评论(0编辑  收藏  举报