1. 模型 model
   Ext.define('StudentDataModel', { //定义名称和映射字段
      extend: 'Ext.data.Model',
      fields: [
      {name: 'name', mapping : 'name'},
      {name: 'age', mapping : 'age'},
      {name: 'marks', mapping : 'marks'}
      ]
   });
  1. 商店 store
   Ext.create('Ext.data.Store', {
      model: 'StudentDataModel',
      data: [
         { name : "Asha", age : "16", marks : "90" },
         { name : "Vinit", age : "18", marks : "95" },
         { name : "Anand", age : "20", marks : "68" },
         { name : "Niharika", age : "21", marks : "86" },
         { name : "Manali", age : "22", marks : "57" }
      ];
   });
  1. 代理 proxy
    客户端代理:Memory WebStorage SessionStorage LocalStorage
    服务器代理:Ajax Rest JsonP
    详细链接:https://www.cnblogs.com/Mr-Joe/archive/2012/02/28/2371292.html

零号
1 声望0 粉丝