extjs ajax 通用写法
来源:互联网 发布:家具摆放软件 编辑:程序博客网 时间:2024/05/15 08:51
Ext.Ajax.request({
url: '/user.htm?method=getNowContextUser',
callback:function(options ,success,response){
var options=options;
if(success==true){
sucFn(response);
}else{
faiFn(response);
}
},
timeout:1000
});
var sucFn=function(response){
var user;
var data=response.responseText;
user=Ext.util.JSON.decode(data);
build(user);
}
var faiFn=function(response){
var user =new Object({
username:"",
id:""
});
var data=response.responseText;
Ext.Msg.alert("提示!",data==undefined?"服务器无返回值":data);
build(user);
}
url: '/user.htm?method=getNowContextUser',
callback:function(options ,success,response){
var options=options;
if(success==true){
sucFn(response);
}else{
faiFn(response);
}
},
timeout:1000
});
var sucFn=function(response){
var user;
var data=response.responseText;
user=Ext.util.JSON.decode(data);
build(user);
}
var faiFn=function(response){
var user =new Object({
username:"",
id:""
});
var data=response.responseText;
Ext.Msg.alert("提示!",data==undefined?"服务器无返回值":data);
build(user);
}
- extjs ajax 通用写法
- Ajax通用写法
- 【ExtJs】ExtJs的Ajax
- ExtJS & Ajax
- ajax写法
- ajax写法
- ajax写法
- extjs通用CRUD方法
- extjs 通用搜索框
- 通用游标写法
- 通用JS事件写法
- 通用事件写法
- makefile的通用写法
- 工厂类通用写法
- 通用ViewHolder的写法
- JS 通用格式写法
- 通用dao写法
- makefile通用写法
- informix dbschema 常用语句
- minicom能输出串口信息不能输入
- Objective-C超越C++,成为第三大受欢迎编程语言
- Java 序列化的高级认识
- hibernate 使用的集合类(list和bag)
- extjs ajax 通用写法
- 在linux shell中使用ftp命令来实现自动登陆、上传与下载
- 将一张表的字段根据条件更新到另一张表的一个字段中去
- cocos2d 安装 和 卸载
- c++输出格式控制
- Eclipse导入到web项目没有run on server
- python PIL ImportError: The _imagingft C module is not installed
- 我的定投计划
- 使用Sqlserver事务发布实现数据同步