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

有没有模板增强计划,比如双向绑定 #52

Open
erguotou520 opened this issue Aug 23, 2019 · 2 comments
Open

有没有模板增强计划,比如双向绑定 #52

erguotou520 opened this issue Aug 23, 2019 · 2 comments

Comments

@erguotou520
Copy link

目前有js和style的增强,那么是否考虑下template的增强?比如非常实用的双向绑定。例如wx:model="someValue"=value="{{somevalue}}" bind:input="onInput"这样的辅助写法。

@callmesoul
Copy link
Contributor

tina主要还是为了更接近原生吧
用够wepy1.0,觉得双向绑定虽然开发上方便了,不用整天this.setData,但对于小程序来说性能消耗比较,不大适合 @erguotou520

@erguotou520
Copy link
Author

可以增加支持,毕竟只是个语法糖,如果对性能有要求,可以拆开写

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

2 participants