Thisthis只出现在函数中。谁调用函数,this就指的是谁。new People(); People中的this代指被创建的对象实例。new开辟内存空间,存储新创建的对象( new Object() )。把this设置为当前对象。执行内部代码,设置对象属性和方法。返回新创建的对象。 Last modification:March 18, 2018 © Allow specification reprint Support Appreciate the author AliPayWeChat Like If you think my article is useful to you, please feel free to appreciate