javascript array.property.slice.call

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);
原文地址:https://www.cnblogs.com/zyip/p/4451032.html