We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2776867 commit 87e469cCopy full SHA for 87e469c
extentds.js
@@ -1,3 +1,6 @@
1
+// 两个关键点:1 原型链的处理, 2构造函数的指向
2
+// 第8行得到的结果是d.prototype = {__proto__ :__.prototype, d.constructor = d},即改变了原型链,也保留了构造函数的指向
3
+
4
var __extends = this.__extends || function (d, b) {
5
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
6
function __() { this.constructor = d; }
0 commit comments