?? simplestore.js
字號:
/*
* Ext JS Library 1.1 RC 1
* Copyright(c) 2006-2007, Ext JS, LLC.
* licensing@extjs.com
*
* http://www.extjs.com/license
*/
/** * @class Ext.data.SimpleStore * @extends Ext.data.Store * Small helper class to make creating Stores from Array data easier. * @cfg {Number} id The array index of the record id. Leave blank to auto generate ids. * @cfg {Array} fields An array of field definition objects, or field name strings. * @cfg {Array} data The multi-dimensional array of data * @constructor * @param {Object} config */Ext.data.SimpleStore = function(config){ Ext.data.SimpleStore.superclass.constructor.call(this, { reader: new Ext.data.ArrayReader({ id: config.id }, Ext.data.Record.create(config.fields) ), proxy : new Ext.data.MemoryProxy(config.data) }); this.load();};Ext.extend(Ext.data.SimpleStore, Ext.data.Store);
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -