ExtJS框架中,Store的代理方式有多种
像是Ajax,内存代理memory,本地代理localstorage、sessionStorage等
这里主要介绍下使用本地数据Ext.data.proxy.LocalStorage
==============================================================================================
1.创建一个store,指定下代理为localstorage
Ext.define('Store名',{
extend:'Ext.data.Store',
fields: ["ids", "name", "age"],//注意此ids不能为id关键字
proxy: {
type: 'localstor