构造函数 A
function A() {
}
构造函数 B
function B() {
A.call(this);
}
修改 B 的原型对象
B.prototype = new A();
// contructor 指向原来的构造函数 B
B.prototype.constructor = B;
标签:function,ES5,JS,语法,prototype,构造函数
From: https://www.cnblogs.com/HypoPine/p/16980980.html