好好爱自己!

javascript 中 arguments.callee属性

javascript 中 arguments.callee属性 可以在函数内部,指向的是这个函数(或者叫做“类”)本身。

相当于PHP 中的 self 关键字。

 

The arguments.callee property contains the currently executing function.

Description

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. This is useful when the name of the function is unknown, such as within a function expression with no name (also called "anonymous functions").

 

 

posted @ 2016-09-23 13:23  立志做一个好的程序员  阅读(224)  评论(0编辑  收藏  举报

不断学习创作,与自己快乐相处