摘要: 普通调用函数,若函数没有return语句,等于return undefined, 构造函数调用的时候,1创建一个新对象,2将构造函数的作用域赋给新对象(this赋给了这个新对象),3执行构造函数中的代码(为这个新对象添加属性),4返回新对象 阅读全文
posted @ 2017-01-31 22:23 shenq2014 阅读(174) 评论(0) 推荐(0)