chakanStore.js


Ext.define('Hongbo.store.west.ChaKanStore',
    {
        extend: 'Ext.data.Store',
        autoLoad: true,
        model: 'Hongbo.model.west.ChaKanModel',

        // 使用proxy指定加載遠程數據
        proxy:
        {
            type:'ajax',
            actionMethods:
            {
                read:'POST'
            },
            api:
            {
                read:'empl/employee!read.action' ,
                create:'empl/employee!add.action',
                update:'empl/employee!update.action',
                destroy:'empl/employee!destroy.action'
            },

            reader:
            {
                type:'json',
                root:'items',
                successProperty:'success',
                messageProperty:'message'
            }
        } 
    });


















發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章