箭头函数的length属性
var a = (x,y,z)=>{ } console.log(a.length) // 3
//legnth:返回函数形参的个数,不包括rest参数的和赋值的形参 let f = (a,b,c,d,g,f=10,...e) => console.log(f.length);//5 f()
var a = (x,y,z)=>{ } console.log(a.length) // 3
//legnth:返回函数形参的个数,不包括rest参数的和赋值的形参 let f = (a,b,c,d,g,f=10,...e) => console.log(f.length);//5 f()
Welcome to here
主页