1、获取函数里面的参数个数
1 function test(x,y,z){} 2 // 获取test参数的个数 3 console.log(test.length) // 3
js各种小知识
原文:http://www.cnblogs.com/zhaobao1830/p/7927663.html