标签:logs == function 回调函数 eof alert llb name this
var CallbackFun = function(){ this.name =‘ddd‘; this.method =function(callback){ if(typeof callback==="function"){ callback(this.name); } } } $(function(){ var call = new CallbackFun(); call.method(function(name){ alert(name); }); })
标签:logs == function 回调函数 eof alert llb name this
原文地址:http://www.cnblogs.com/hy928302776/p/6776355.html