sencha touch中的localstorage和rest Web服务

sencha touch中的localstorage和rest Web服务,rest,proxy,sencha-touch,local-storage,Rest,Proxy,Sencha Touch,Local Storage,我有一个应用程序,目前正在通过Web服务处理数据。我如何设置它,使其也可以脱机工作?(因为当前设置的代理是json,我知道要脱机工作,必须将代理设置为localstorage) 阅读Sencha API中的本地存储详细信息。您需要将localstorage代理添加到模型中,存储将自动在localstorage中添加数据。但请记住,每次添加到localstore之前都要检查是否已经存在相同的数据 您将在sencha docs详细信息中获得更好的解释

我有一个应用程序,目前正在通过Web服务处理数据。我如何设置它,使其也可以脱机工作?(因为当前设置的代理是json,我知道要脱机工作,必须将代理设置为localstorage)

阅读Sencha API中的本地存储详细信息。您需要将localstorage代理添加到模型中,存储将自动在localstorage中添加数据。但请记住,每次添加到localstore之前都要检查是否已经存在相同的数据

您将在sencha docs详细信息中获得更好的解释