网络编程
位置:首页>> 网络编程>> JavaScript>> 实例:arguments.callee的应用

实例:arguments.callee的应用

作者:CNLEI 来源:CNLEI.Blog 发布时间:2009-04-20 12:38:00 

标签:实例,应用,callee

 

function f(x){
  alert(x);
  return arguments.callee;
}
f(0)(1)(2)(3)(4)(5)(6)(7)(8)(9); 

 

function f(){
  var a=arguments,i,l=a.length;
  for(i=0; i<l;i++){
    alert(a[i]);
  }
  return arguments.callee;
}
f(0)(1,2)(3,4,5)(6,7,8,9); 

0
投稿

猜你喜欢

手机版 网络编程 asp之家 www.aspxhome.com