摘要: __proto__ __proto__ 每一个对象(假如创建一个函数Person,new Person()返回的实例对象)都有__proto__, 指向上层(创建自己的那个构造函数)的pototype 因此对象可以从 prototype 中继承属性和方法 prototype prototype 函数 阅读全文
posted @ 2019-05-06 18:12 ladywang 阅读(104) 评论(0) 推荐(0) 编辑