国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > JavaScript > 正文

prototype與__proto__區別詳細介紹

2019-11-19 18:04:31
字體:
來源:轉載
供稿:網友

prototype與__proto__區別

Each constructor is a function that has a property named “prototype” that is used to implement prototype-based inheritance and shared properties. Every object created by a constructor has an implicit reference (called the object's prototype) to the value of its constructor's “prototype” property.
When a constructor creates an object, that object implicitly references the constructor's prototype property for the purpose of resolving property references. The constructor's prototype property can be referenced by the program expression constructor.prototype, and properties added to an object's prototype are shared, through inheritance, by all objects sharing the prototype. Alternatively, a new object may be created with an explicitly specified prototype by using the Object.create built-in function.

主站蜘蛛池模板: 肥城市| 登封市| 大田县| 高碑店市| 汪清县| 新建县| 潼南县| 乌兰浩特市| 葫芦岛市| 平南县| 正定县| 陈巴尔虎旗| 高阳县| 明星| 麟游县| 龙井市| 上杭县| 南京市| 滦南县| 赤水市| 太仓市| 米泉市| 崇阳县| 高雄市| 新郑市| 鹰潭市| 富阳市| 营山县| 班戈县| 丰宁| 二连浩特市| 阳朔县| 巫溪县| 枣庄市| 上饶县| 特克斯县| 封丘县| 当雄县| 莱西市| 宜昌市| 徐汇区|