//客户联系记录单新增
function contAdd() {
var cusId = "0001";
layer.open({
type: 2,//弹窗类型 ['dialog', 'page', 'iframe', 'loading', 'tips']
title: '客户联系记录单',
maxmin: true,
shadeClose: true, //点击遮罩关闭层
area: ['800px', '470px'],
content: 'customGetId?customId=' + cusId + '',
btn: ["保存", "取消"],
success: function (layero, index) {
var body = layer.getChildFrame('body', index);
body.find("#customId").val(cusId);
},
yes: function (index, layero) {
//接收弹出层返回的数据
var res = $(layero).find("iframe")[0].contentWindow.formData();
$.ajax({
async:false,
type: "post",
url: "custombrsave",
data: res.data,
success: function (data) {
** $.ajax({
//此处返回成功,但是没有把数据显示在页面
async:false,
type: "post",
url: "customBrsFind",
data: data,
dataType:"html",
success:function (data) {
},
error:function (data) {
}
});**
layer.close(layer.index);
},
dataType: "json",
error: function () {
alert("请求失败");
}
})
}
});
}
ajax异步请求,返回的结果在response中有内容,页面不显示
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
4条回答 默认 最新
悬赏问题
- ¥50 如何用脚本实现输入法的热键设置
- ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
- ¥30 深度学习,前后端连接
- ¥15 孟德尔随机化结果不一致
- ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
- ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
- ¥15 谁有desed数据集呀
- ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
- ¥15 关于#hadoop#的问题
- ¥15 (标签-Python|关键词-socket)