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

关于 减少 setter 属性的使用 #210

Open
MrDomin opened this issue Oct 22, 2020 · 0 comments
Open

关于 减少 setter 属性的使用 #210

MrDomin opened this issue Oct 22, 2020 · 0 comments

Comments

@MrDomin
Copy link

MrDomin commented Oct 22, 2020

为什么Foo的两个属性a和b,但是却用setBar来对其进行赋值呢,
既然如此为什么Foo类不是

class Foo{
  bar:{a:number,b:number}
}
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