同步ajax请求
2024-10-11 11:38:58
/*
* 发送同步ajax请求的函数 CreateBy 秋水
*/
function syncAjax(data) {
var resp = null;
$.ajax({
type : "POST",
url : 'mvc/dispatch',
data : data,
async : false,
dataType : "json",
success : function(response) {
resp = response;
},
error : function(response) {
resp = response;
}
});
return resp;
}
最新文章
- Linux - 终端语言设置
- Oracle--(Hierarchical Queries)层级查询
- 《第一行代码》学习笔记10-活动Activity(8)
- 循环之while
- 彩色图像--色彩空间 YIQ 、YUV 、YCbCr 、YC1C2 和I1I2I3
- 投票项目-bootstrap
- exgcd学习笔记
- linux后台执行命令:&;与nohup的用法
- Install zeal on ubuntu16.04
- HDU 4635 Strongly connected (强连通分量+缩点)
- [leetcode]380. Insert Delete GetRandom O(1)常数时间插入删除取随机值
- 理解Express中间件
- 钉钉机器人-实现监控通知功能-python
- NoSQL数据存储
- 常见文档一览表 -httpclient
- Linux下umask的缺省默认权限
- Alpha 冲刺7
- MySQL下创建序列及创建自定义函数方法介绍
- 终端利用ssh登录远程服务器
- 【Python】__slots__ 、@property、多重继承、定制类、枚举类、元类