javaScript的原型对象及原型链

转至:http://www.javashuo.com/article/p-fqugfvmg-ct.html 一、prototype和__proto__的区别 var a = {}; console.log(a.prototype); //undefined console.log(a.__proto__); //Object {} var b = function(){} console.l
相关文章
相关标签/搜索