您现在的位置:
365建站网 >
365文章 > Javascript 新手阅读诡异的 google AD code (1)
Javascript 新手阅读诡异的 google AD code (1)
文章来源:365jz.com 点击数:
204 更新时间:2009-09-20 08:54
参与评论
该函数实现功能未知.
1
var ia = function(a, b)
{
2
var c = a.u;
3
if (arguments.length > 2)
{
4
var d = Array.prototype.slice.call(arguments, 2); // 用当前函数的第二个参数之后的参数生成一个新的数组
5
c && d.unshift.apply(d, c); // 如果c存在,将数组c的每一个单元添加的d的开头,重置数组d的长度.
6
c = d
7
}
8
b = a.w || b; //这种写法很有意思,以后可以试试.
9
a = a.v || a;
10
var e, f = b || n;
11
e = c ? function()
{
12
var h = Array.prototype.slice.call(arguments); //用当前函数的参数生成一个新的数组
13
h.unshift.apply(h, c);
14
return a.apply(f, h)
15
} : function()
{
16
return a.apply(f, arguments)
17
};
18
e.u = c;
19
e.w = b;
20
e.v = a;
21
return e
22
}
如对本文有疑问,请提交到交流论坛,广大热心网友会为你解答!! 点击进入论坛
------分隔线----------------------------