Blog icon indicating copy to clipboard operation
Blog copied to clipboard

为啥每次都要创建一个 Child函数来new 子类?现在不都是 const p1 = new Person(); const p2 = new Person()吗

Open panqingjie00 opened this issue 10 months ago • 0 comments

现在js、es 的继承不都是,const p1 = new Person(); const p2 = new Person()这样写吗? 为啥这篇教程里全都加了一个 function Child () { },求解

panqingjie00 avatar Oct 13 '23 07:10 panqingjie00