跳到主要内容
CNode

请教一个匿名方法形参的问题~

社区
Ffreew01f发布于 12 年前最后回复 12 年前
244280
var f0 = function test(a, b, c){
	console.log(arguments.length);   // 实参个数
	console.log(test.length);·    // 形参个数
}

费匿名怎么获得形参个数呢

var f1 = function(a, b, c){
	console.log(arguments.length);   // 实参个数
	console.log(???.length);·    // 形参个数???
}
查看回复

回复 (2)

F
freew01f#212 年前
引用 alsotangarguments.callee

thx的说~

A
alsotang#112 年前

arguments.callee

参与回复

登录后即可参与回复。登录