function Main ( x,y,w,h ) { this.x = x; this.y = y; this.w = w; this.h = h; }; Main.prototype.init = function () { }; Main.prototype.get= function () { for(var i = 0; i < 10; i++) { (function(e) { alert(e); })(i); } }; Main.init = Main; var fn = new Main(); fn.get();
淡然如是
相关分类