function foo() { //var var1=Array.prototype.slice.call(arguments); var var1=[].slice.call(arguments); console.log(var1.length); } foo(0,1,2,3,4,5,6);
时间: 2024-10-19 16:08:53
function foo() { //var var1=Array.prototype.slice.call(arguments); var var1=[].slice.call(arguments); console.log(var1.length); } foo(0,1,2,3,4,5,6);