- 博客(1)
- 收藏
- 关注
转载 浅谈函数的方法调用模式The Method Invocation Pattern !
var myObject = { num: 0, getNum: function (inc) { this.num += typeof inc === 'number' ? inc : 1; } }; myObject.getNum(); console.log(myObject.num); // 1 ...
2017-09-10 21:30:00 125
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人