The last discussion about the prototype

1:create Object

2:create function

3:create a rule:all instance must have __proto__, and it reference to Father's prototype

4:create a rule:the prototype is object,and it has a attribute named constructor,the constructor reference to it self

5:correct Object,set it`s prototype null,and set it`s __proto__  reference to Function

6:create Date、Array、Math、Function by Function

 

 

posted @ 2019-08-18 01:48  dami.white  阅读(173)  评论(0编辑  收藏  举报