new执行过程(简易)
Function Person(){}
const man = new Person()
new的执行可以理解为如下过程
const man = {} man.__proto = Person.Prototype Person.call(man)
注意:并非真的完整过程
Function Person(){}
const man = new Person()
new的执行可以理解为如下过程
const man = {} man.__proto = Person.Prototype Person.call(man)
注意:并非真的完整过程