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

this.$setData()不支持回调? #44

Open
myjf007 opened this issue Jan 31, 2019 · 2 comments
Open

this.$setData()不支持回调? #44

myjf007 opened this issue Jan 31, 2019 · 2 comments

Comments

@myjf007
Copy link

myjf007 commented Jan 31, 2019

不能像原生那样设置后进行回调处理么?

this.setData({
},()=>{
   // do something
});
@switer
Copy link
Member

switer commented Jan 31, 2019

this.setData 是原生方法 this.$setData 是扩展方法,目前没有支持回调,有需要可以提个PR

@Mister-Hope
Copy link
Contributor

看到这个issue我想问一句,这个api真的有存在的必要么?它比原生优在哪里呢?或者说哪些场合相比原生更适合用它呢?求解答。

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

3 participants