读书人

Extjs温习笔记(十四)- XmlReader

发布时间: 2012-10-26 10:30:59 作者: rapoo

Extjs复习笔记(十四)-- XmlReader

读取XML文件来构造grid

先了解一个函数:Ext.data.XmlReader(?Object?meta,?Object?recordType?)

API文档解释:

?

Data reader class to create an Array of?Ext.data.Record?objects from an XML document based on mappings in a provided?Ext.data.Record?constructor.

Note: that in order for the browser to parse a returned XML document, the Content-Type header in the HTTP response must be set to "text/xml" or "application/xml".

?

Create a new XmlReader.

Parameters:
读书人网 >JavaScript

热点推荐