JavaScript: What's the callee? [closed]
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)
- The person who is called by the caller (on the telephone).
- (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
精彩评论