构造函数

内部原理

1.在函数体最前面隐式的加上this = {}

2.执行this.xxx=xxx

3.隐式的return this

猜你喜欢

转载自www.cnblogs.com/bluejs/p/8888892.html