JS原型+原型链

前言 值类型:undefined, number, string, boolean 引用类型:object、array、function 一切(引用类型)都是对象,对象是属性的集合 prototype原型 每个函数都有一个属性prototype prototype的属性值是一个对象 prototype所指对象默认有一个constructor属性 而constructor属性又指向其本身 隐式原型
相关文章
相关标签/搜索