更新时间:2023-02-05 14:32:34
任何不是原始类型的东西(undefined,null,number,string,boolean)是JavaScript中的对象(或实例)。这意味着函数
继承自对象
。
对象实例可以包含更多可以是函数的实例。这就是我们所说的方法(因为它有一个自动这个
变量)。
Object instances can contain more instances which can be functions. That's what we call a "method" (since it has an automatic this
variable).
自你不能调用每个Object实例,不是每个对象都是函数。
Since you can't "call" every Object instance, not every object is a function.