首页 > 编程语言 > 详细

javascript 中 arguments.callee属性

时间:2016-09-23 14:58:20      阅读:208      评论:0      收藏:0      [点我收藏+]

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").

 

技术分享

 

javascript 中 arguments.callee属性

原文:http://www.cnblogs.com/oxspirt/p/5899685.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!