赞
踩
arguments: 伪数组,打印输出为实参所有的值组成的数组
function fun(){
// console.log(arguments);
console.log('arguments.callee === fun的值:',arguments.callee === fun);
}
fun('tom',[1,2,3],{name:'Janny'});
function fun(){
console.log(arguments instanceof Array);
console.log(Array.isArray(arguments));
}
fun('tom',[1,2,3],{name:'Janny'});
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。