We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78e09da commit 3898d66Copy full SHA for 3898d66
docs/oop/prototype.md
@@ -270,7 +270,7 @@ v instanceof Vehicle
270
Vehicle.prototype.isPrototypeOf(v)
271
```
272
273
-上面代码中,`Object`是对象的构造函数,它的原型对象是`Object.prototype`,`isPrototypeOf()`方法用于检查某个对象是否为另一个对象的原型,详细解释见后文。
+上面代码中,`Vehicle`是对象`v`的构造函数,它的原型对象是`Vehicle.prototype`,`isPrototypeOf()`方法是 JavaScript 提供的原生方法,用于检查某个对象是否为另一个对象的原型,详细解释见后文。
274
275
由于`instanceof`检查整个原型链,因此同一个实例对象,可能会对多个构造函数都返回`true`。
276
0 commit comments