mirror of
https://github.com/wangdoc/javascript-tutorial.git
synced 2025-12-30 18:02:36 +08:00
@@ -445,7 +445,7 @@ Object.assign(S.prototype, M2.prototype);
|
||||
S.prototype.constructor = S;
|
||||
|
||||
var s = new S();
|
||||
s.hello // 'hello:'
|
||||
s.hello // 'hello'
|
||||
s.world // 'world'
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user