Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
panqingjie00 opened this issue Oct 13, 2023 · 0 comments

Comments

@panqingjie00
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant