Javascript arguments.callee what is it for

后端 未结 5 1640
无人共我
无人共我 2020-12-13 19:24

I haven\'t found any complete cross-browser doc of this variable.

What is arguments.callee for? how does it work?

Which arguments does it have?

5条回答
  •  一向
    一向 (楼主)
    2020-12-13 20:08

    callee is a property of the arguments object. It can be used to refer to the currently executing function inside the function body of that function.

    MDN docs here

提交回复
热议问题