开发者

JavaScript: What's the callee? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 12 years ago.

Also, what do its methods call and apply开发者_Go百科 mean and how to use all that stuff?


apply() and call().


The caller is the function that calls another function.

The callee is the function that is called. So inside a function, arguments.callee always refers to the function itself.


This is analogous to terms in other areas, e.g. Trainer <-> Trainee.


Noun

callee (plural callees)

  1. The person who is called by the caller (on the telephone).
  2. (computing) A function called by another.

https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/call

https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/apply

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜