chakanStore.js
来源:互联网 发布:sql导入sybase数据 编辑:程序博客网 时间:2024/05/01 05:34
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' } } });