js构造函数内部原理 1.在函数体最前面隐式的加上this = { } 2.执行 this.xxx = xxx 3.隐式的返回 this function Student (name,age){ //this = { } this.name = name this.age = age // return this } var student = new Student (小明,16) 前端进阶精选:点此去