javascript对象中的constructor,prototype和__proto__

文章转自:http://www.cnblogs.com/winderby/articles/4039816.html 1.constructor  constructor是构造函数的原型的一个属性,他指向这个对象的构造函数。 function Tree(name) { this.name = name; } var theTree = new Tree('Redwood'); console.
相关文章
相关标签/搜索