“`”
参考回答:
<pre><code>function A(…) {} A.prototype…
function B(…) {} B.prototype…
A.prototype = Object.create(B.prototype);
</code></pre>
// 再在A的构造函数里new B(props);
<pre><code>
</code></pre>
<pre><code> "“`
Was this helpful?
0 /
0