Extjs Store 的异常错误处理
来源:互联网 发布:淘宝点结算没反应 编辑:程序博客网 时间:2024/05/17 03:28
先来看看Store的load()方法
load( Object options
) : void
Parameters:
options
: ObjectAn object containing properties which control loading options:- params :Object
An object containing properties to pass as HTTP parameters to a remote data source.
- callback : Function}
A function to be called after the Records have been loaded. The callback is passed the following arguments:
- r : Ext.data.Record[]
- options: Options object from the load call
- success: Boolean success indicator
- scope : Object
Scope with which to call the callback (defaults to the Store object)
- add : Boolean
Indicator to append loaded records rather than replace the current cache.
- params :Object
Returns:
void
由上可知,可以很轻松的写出Store异常处理
ds.load({params:{start:0, limit:4},
callback:function(r, options, success) {
if (success == false) {
Ext.Msg.alert('错误','数据提取错误') ; //当然也可以做其他的处理操作
}else{
Ext.Msg.alert('提示,'数据提取成功)
}
}
});
出错信息可以在options.request.scope.reader.jsonData 或 options.request.scope.reader.rawData 中获得。
- Extjs Store 的异常错误处理
- Extjs 分页 store处理
- Extjs的Store详解
- EXTJS的Store加载
- ExtJS Store的正确使用方法
- ExtJs的Store在加载
- Extjs学习 Store的用法
- Extjs Store 的用法详解
- EXTJS中store的用法
- Extjs 获取Store的数据
- ExtJs中Store的使用
- ExtJs中Store的种类
- Extjs Store 的用法详解
- 各类异常错误的处理
- 异常与错误的处理
- Extjs Ext.data.store 捕获加载数据的异常,并打印信息
- php的错误处理和异常处理
- ExtJS store
- 收拾心情,重新开始
- 立波广告检测:普及android手机广告插件的科普应用(souapp.com搜应用网推荐)
- struts2.3.4常用jar包
- Struts2+Spring3 设置默认自动装配action需要注意的细节
- object-c nsdata 读取和写入二进制文件
- Extjs Store 的异常错误处理
- HappyIdiom之四Study界面淡入效果
- Android Monkey
- vector c详细用法的说明
- java 开发模式 blogdown的专栏
- static/final 知识点
- IOS 异步请求
- ava 开发模式小结blogdown的专栏
- JAVA设计模式五大原则blogdown的专栏