js中的this指针(四)

当一个函数前面加上 new 操作符来调用,此时 this 会被绑定到新生成的对象上。

这既是所谓的构造函数调用模式。

posted @ 2016-12-24 12:19  sx00xs  阅读(82)  评论(0编辑  收藏  举报