Extjs4 使用store的post方法
来源:互联网 发布:网络电视频道大全图标 编辑:程序博客网 时间:2024/05/16 02:47
Extjs4 使用store的post方法需要修改actionmathods
You have to override actionMethod property
Ext.define('Sencha.store.Teams', { extend: 'Ext.data.Store', config: { model: 'Sencha.model.Team', autoLoad: true, proxy: { type: 'ajax', actionMethods: { create : 'POST', read : 'POST', // by default GET update : 'POST', destroy: 'POST' }, url: 'teams.json' } }});
or define your own proxy class
Ext.define('Sencha.data.PostAjax', { extend: 'Ext.data.proxy.Ajax', alias: 'proxy.postproxy', // must to get string reference config: { actionMethods: { create : 'POST', read : 'POST', // by default GET update : 'POST', destroy: 'POST' }, }}Ext.define('Sencha.store.Teams', { extend: 'Ext.data.Store', config: { model: 'Sencha.model.Team', autoLoad: true, proxy: { type: 'ajaxpost' url: 'teams.json' } }});
Disclaimer: code was written from scratch and not really tested. Please do not downvote if it does not work, before not get replay on your comment. Thanks.
- Extjs4 使用store的post方法
- Extjs4 RowEditing 的使用和更新方法
- extjs4.0中Store的用法
- Extjs4 关于Store的一些操作
- Extjs4 动态更改Store里面的内容
- ExtJs store传递给后台的参数使用POST方式
- extjs4.0模型 model store proxy使用详解
- extjs4.0模型 model store proxy使用详解
- ExtJS4 Store分析
- Extjs4.0 store 详解
- Extjs4.2:查找store
- Extjs4 创建Store
- extjs4中的store
- View.post()方法的使用
- 使用Flash(Flax)post方式跨越请求的Extjs4代理(Proxy)的实现类
- EXTjs4.1 的store的findRecord的BUG.
- Extjs4 combobox 的使用
- EXTJS4.0 gridpanel 用法笔记~~store的一些用法
- godaddy域名出现ping不通的解决办法
- cocos2d-x-2.0.4的网络连接库CCHttpClient的BUG
- Mms 杂项与彩信附件加载
- 使用Memcached提高.NET应用程序的性能
- HDU2037:今年暑假不AC
- Extjs4 使用store的post方法
- MoonWarrior cocos2d-x版本 --1
- session中object转化为int
- 集群中几种session同步解决方案的比较
- ABAP Function SAPGUI_PROGRESS_INDICATOR
- LightOJ 1193 Dice (II)
- Unable to execute dex: Multiple dex files define 解决方法
- Oracle条件语句的用法
- java 用FlexPaper+SWFTools实现文章可看不可复制黏贴,转化swf,当文件名中含有多个空格,转化失败的原因及解决办法