Skip to content

Commit 19e1974

Browse files
committed
docs: edit class-extends
1 parent 06fac98 commit 19e1974

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/class-extends.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ function mix(...mixins) {
713713
class Mix {}
714714

715715
for (let mixin of mixins) {
716-
copyProperties(Mix, mixin); // 拷贝实例属性
716+
copyProperties(Mix.prototype, new mixin()); // 拷贝实例属性
717717
copyProperties(Mix.prototype, mixin.prototype); // 拷贝原型属性
718718
}
719719

0 commit comments

Comments
 (0)