日期:2014-05-16 浏览次数:20347 次
function classA(){ this.x = 0; this.show = function(){ alert(this.x); } this.show(); } new classA();
x = 1; function classA(){ this.x = 0; this.show = function(){ alert(this.x); } this._show = function(){ this.show.call(window); } this._show(); } var a = new classA();