“`”

参考回答:

<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

发表回复 0

Your email address will not be published.