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)