function test(a, b){ if (arguments.length === add.length) { console.log("形参和实参个数相等"); } else { console.log("形参和实参个数不等"); } } test(1); // "形参和实参个数不等"
怎样判断函数形参的个数是否与实参个数相等
猜你喜欢
转载自www.cnblogs.com/aisowe/p/11728485.html
今日推荐
周排行