[英]Nature of the call method on Function.prototype
函数对象上的[[Call]]函数与用于控制函数调用的接收者的调用函数是否完全相同?
No, [[Call]] is an internal method (for specification purposes only). 不,[[Call]]是一种内部方法 (仅用于说明目的)。 It's defined for user-created functions or bound functions , but can also be implemented on host objects.
它是为用户创建的函数或绑定的函数定义的 ,但也可以在宿主对象上实现。
The Function.prototype.call
method , an actual language-accessible object, is different from it, though it invokes [[Call]]. 尽管可以调用[[Call]],但
Function.prototype.call
方法是一个实际的可语言访问的对象,它与之不同。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.