extjs3.0帮助文档: DataReader( Object meta, Array/Object recordType ) Create a new DataReader 参数:
meta : Object Metadata configuration options (implementation-specific). 元数据配置选项(...-...) recordType : Array/Object Either an Array of Field definition objects 任意一个Field定义的对象数组 which will be passed to Ext.data.Record.create, 作为对象传递给Ext.data.Record.create, or a Record constructor created using Ext.data.Record.create. 或一个由Ext.data.Record.create创建的Record结构. 返回: void
extjs3.0帮助文档: XmlReader( Object meta, Object recordType ) Create a new XmlReader. 参数: meta : Object Metadata configuration options recordType : Object Either an Array of field definition objects as passed to Ext.data.Record.create, 任意一个field定义的对象数组作为参数传递给Ext.data.Record.create or a Record constructor object created using Ext.data.Record.create. 或者一个使用Ext.data.Record.create创建的Record结构对象。 返回: void
extjs3.0帮助文档: JsonReader( Object meta, Array/Object recordType ) Create a new JsonReader Create a new JsonReader 参数: meta : Object Metadata configuration options. recordType : Array/Object Either an Array of Field definition objects (which will be passed to Ext.data.Record.create, or a Record constructor created from Ext.data.Record.create. 返回: void
查看内部js代码: Ext.data.JsOnReader= function(meta, recordType){ meta = meta || {}; Ext.applyIf(meta, { idProperty: 'id', successProperty: 'success', totalProperty: 'total' }); Ext.data.JsonReader.superclass.constructor.call(this, meta, recordType || meta.fields); }; ...略... if (Ext.isEmpty(o[this.meta.root])) { throw new Ext.data.JsonReader.Error('root-emtpy', this.meta.root); } else if (o[this.meta.root] === undefined) { throw new Ext.data.JsonReader.Error('root-undefined-response', this.meta.root); }
This article explores the process of integrating Promises into Ext Ajax calls for a more functional programming approach, along with detailed steps on testing these asynchronous operations. ...
[详细]