特牛网址导航

JavaScript_函数_function fn1-CSDN博客

网友收藏
arguments对象获取函数参数window.onload=function(){ f(1,2,3,4);};function f(){ console.log(arguments.length);//实际传递的参数数量 console.log(arguments);}含有默认值的参数window.onload=function(){ f('张三');};funct..._function fn1
标签:function fn1