How to store login credentials in localstorage
问题 If got a sencha touch application, with a login form. For returning users, I would like to store the login credentials in the local storage. User.js App.models.User = Ext.regModel('User', { fields: [ { name: 'username', type: 'string' }, { name: 'password', type: 'string' } ], proxy: { type: 'localstorage', id: 'p2s-users' } }); Users.js App.stores.users = new Ext.data.Store({ model: 'User', autoLoad: true }); Now I try to sync the form values with local storage, how can I do that, what's the