摘要: obj.call(thisObj, arg1, arg2, ...); obj.apply(thisObj, [arg1, arg2, ...]); 两者作用一致,都是把obj(即this)绑定到thisObj,这时候thisObj具备了obj的属性和方法。或者说thisObj『继承』了obj的属性 阅读全文
posted @ 2017-12-06 16:04 seafwg 阅读(309) 评论(0) 推荐(0)