1.创建新对象

2.将this绑定到该对象

3.执行构造函数代码,将属性绑定到新对象

4.返回该对象

注意:新对象的__proto__要指向构造函数的prototype

posted on 2021-05-29 11:37  皮杰克  阅读(50)  评论(0编辑  收藏  举报