构造函数

内部原理

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

2.执行this.xxx=xxx

3.隐式的return this

posted @ 2018-04-20 10:38  js_yl  阅读(98)  评论(0)    收藏  举报