2018年的文章移至github上,点我去!2018年的文章移至github上,点我去!2018年的文章移至github上,点我去!

Fork me on GitHub

2015年12月3日

JavaScript中的apply,call与this的纠缠

摘要: 1.apply定义 apply:调用函数,并用指定对象替换函数的 this 值,同时用指定数组替换函数的参数。 语法:apply([thisObj[,argArray]]) thisObj 可选。要用作 this 对象的对象。 argArray 可选。要传递到函数的一组参数。 可选。要用作 this 阅读全文

posted @ 2015-12-03 22:36 qize 阅读(3159) 评论(2) 推荐(0)

导航