Skip to content

Commit dc665a2

Browse files
committed
Update prototype.md
1 parent 88b3a03 commit dc665a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/zh/object/prototype.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
##原型
22

3-
JavaScript 不包含传统的类继承模型,而是使用 *prototypal* 原型模型。
3+
JavaScript 不包含传统的类继承模型,而是使用 *prototype* 原型模型。
44

55
虽然这经常被当作是 JavaScript 的缺点被提及,其实基于原型的继承模型比传统的类继承还要强大。
66
实现传统的类继承模型是很简单,但是实现 JavaScript 中的原型继承则要困难的多。

0 commit comments

Comments
 (0)