Ember.js数据如何清除数据存储 [英] Ember.js Data how to clear datastore
本文介绍了Ember.js数据如何清除数据存储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Ember.js进行实验,并设置了一个小型应用程序,用户可以登录和注销。当用户注销时,我想清除数据存储中的所有当前缓存的记录。
有没有办法这样做,或者我必须强制浏览器重新加载页面?
I am experiementing with Ember.js and have setup a small app where users can login and logout. When the user logs out I want to clear all of the currently cached records in the Data Store. Is there a way to do this or would I have to force the browser to reload the page?
推荐答案
清算Ember-Data中尚不支持数据存储。在Github跟踪器上有一个有关此问题的问题。
Clearing the data store is not yet supported in Ember-Data. There is an open issue concerning this on the Github tracker.
这篇关于Ember.js数据如何清除数据存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文