在Ember.js中,存储保存和存储提交有什么区别? [英] In Ember.js, what's the difference between store save and store commit?

查看:111
本文介绍了在Ember.js中,存储保存和存储提交有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么区别:

this.get('store').commit()

this.get('store').save()

推荐答案

没有区别。
save 是与 commit 的别名github.com/emberjs/data/pull/903rel =nofollow> PR(Make #commit a aias for #save)

There is no difference. save is an alias for commit that was introduced with this PR (Make #commit an alias for #save)

希望它帮助

这篇关于在Ember.js中,存储保存和存储提交有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆