欢喜小猫咪

文章
5
资源
0
加入时间
3年1月8天

JS arguments的callee属性和func的caller属性

1.arguments.calleecallee是arguments(向函数传递的实参列表)的属性,callee指向该函数的引用(就是函数本身)function test(){ console.log(arguments.callee);}test()function test(){ console.log(arguments.callee == test);}test()在哪个函数里面的arguments就指向哪个函数的引用function test(){ console.