开发者

JavaScript: What's the callee? [closed]

开发者 https://www.devze.com 2023-01-28 08:26 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
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

精彩评论

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