Skip to content

Commit 87e469c

Browse files
authoredMar 21, 2020
Update extentds.js
1 parent 2776867 commit 87e469c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎extentds.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// 两个关键点:1 原型链的处理, 2构造函数的指向
2+
// 第8行得到的结果是d.prototype = {__proto__ :__.prototype, d.constructor = d},即改变了原型链,也保留了构造函数的指向
3+
14
var __extends = this.__extends || function (d, b) {
25
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
36
function __() { this.constructor = d; }

0 commit comments

Comments
 (0)