js中對象的constructor屬性及其作用

引用javascript 對象中的 constructor屬性的作用? var a,b; (function(){ function A (arg1,arg2) { this.a = 1; this.b=2; } A.prototype.log = function () { console.log(this.a); } a = new A();
相關文章
相關標籤/搜索