Let's look at an example. There is a Rabbit constructor. There is a method sing
r1 which is an instance of Rabbit. We find that it r1.__proto__
points to an object, and this object and r1的构造函数Rabbit
the prototype
point to the same object
js basic review 2-constructor and object prototype __proto__
Guess you like
Origin blog.csdn.net/dyw3390199/article/details/114956967
Recommended
Ranking