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

计算属性直接使用get会报错,如何设置set更优雅那? #7

Open
PeanutQAQ opened this issue Feb 14, 2019 · 0 comments
Open

Comments

@PeanutQAQ
Copy link

尝试使用get来设置某个参数,结果报TypeError: Cannot set property hoverText of # which has only a getter。加了个set函数,但是很丑陋。
set hoverText(no) {
this._hoverText = 0;
}
请问有什么处理的建议吗?

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