我是靠谱客的博主 无情夕阳,这篇文章主要介绍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").

 

 

转载于:https://www.cnblogs.com/oxspirt/p/5899685.html

最后

以上就是无情夕阳最近收集整理的关于javascript 中 arguments.callee属性的全部内容,更多相关javascript内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(105)

评论列表共有 0 条评论

立即
投稿
返回
顶部