var ia = function(a, b){
var c = a.u;
if (arguments.length > 2) {
var d = Array.prototype.slice.call(arguments, 2); // 用当前函数的第二个参数之后的参数生成一个新的数组
c && d.unshift.apply(d, c); // 如果c存在,将数组c的每一个单元添加的d的开头,重置数组d的长度.
c = d
}
b = a.w || b; //这种写法很有意思,以后可以试试.
a = a.v || a;
var e, f = b || n;
e = c ? function(){
var h = Array.prototype.slice.call(arguments); //用当前函数的参数生成一个新的数组
h.unshift.apply(h, c);
return a.apply(f, h)
} : function(){
return a.apply(f, arguments)
};
e.u = c;
e.w = b;
e.v = a;
return e
}如对本文有疑问,请提交到交流论坛,广大热心网友会为你解答!! 点击进入论坛