var a={A:function() { var a=function(txt) { this.text=txt;alert(this.text); }; a.prototype={ show:function(){alert(this.text);}} return a; }();} var b=new a.A("Do you miss me?");b.show();以上腳本有錯嗎,為什么不彈?。烤W站開發Javascript問題補充: 怎么輸的代碼丟失啊,我重新輸一遍 A:function() { var a=function(txt) { this.text=txt; }; a.prototype={ show:function(){alert(this.text);} } return a; }(); } var b=new a.A("Do you miss me?"); b.show();
這段腳本有錯嗎
精慕HU
2018-12-10 14:10:25