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();
相关文章
相关标签/搜索