22
This commit is contained in:
@@ -136,7 +136,7 @@
|
|||||||
|
|
||||||
Test.prototype = new Test2("测试2")
|
Test.prototype = new Test2("测试2")
|
||||||
// 让子类型的原型的 constructor 指向子类型(为了修正 constructor 属性)
|
// 让子类型的原型的 constructor 指向子类型(为了修正 constructor 属性)
|
||||||
// Test.prototype.constructor = Test
|
Test.prototype.constructor = Test
|
||||||
var test = new Test("测试1")
|
var test = new Test("测试1")
|
||||||
console.log("test: ", test);
|
console.log("test: ", test);
|
||||||
```
|
```
|
||||||
Reference in New Issue
Block a user