The object defined by the function has a prototype attribute, and the prototype attribute points to a prototype object. Note that the prototype attribute and the prototype object are two different things, so pay attention to the difference. This article mainly introduces the relevant information about prototype in JS. Friends who need it can refer to it.
2016-09-09