/ Published in: Other
Expand |
Embed | Plain Text
var jsonHandler = makeClass({ initialize: function(o) { // window.funcArray=[]; this.funcI=0; this.o = extendObj({ callbackKey:'_callback', funcPrefix:'jsonHandle' },o||{}); }, json : function(url,callbackFunc) { this.funcI++; var name = this.o.funcPrefix+this.funcI; window[name]=callbackFunc; appendScript(url+'&'+this.o.callbackKey+'='+name); } });
You need to login to post a comment.
