日期:2014-05-16 浏览次数:20529 次
    Ext.onReady(function () {
        var store = Ext.create('Ext.data.Store', {
            fields: ["Id", "GUID", "UserID", "UserGUID", "UserName", "UserLoginName", "UserLoginPassword", "UserPhone", "UserEmail"],
            proxy: {
                type: 'ajax',
                url: 'data.txt',
                reader: {
                    type: 'json',
                    root: 'Data.PageData'///ext可以直接配置root
                }
            }, autoLoad: true
        });
        Ext.create('Ext.grid.Panel', {
            store: store,
            columns: [
        { text: 'Id', dataIndex: 'Id' },
        { text: 'GUID', dataIndex: 'GUID' },
        { text: 'GUID', dataIndex: 'GUID' },
        { text: 'UserName', dataIndex: 'UserName' }
    ],
            height: 200,
            width: 400,
         &nb