Ajax里面的Ajax但它不起作用 [英] Ajax inside ajax but its not working
本文介绍了Ajax里面的Ajax但它不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在ajax里面有ajax但是它没有工作.....它不会调试..
为什么......
我尝试过:
I have ajax inside ajax but its not working.....it does not going to debugger..
why...
What I have tried:
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "WebService1.asmx/GetConsoleName",
async: false,
dataType: "json",
success: function (response) {
console = response.d.data;
$("#hdn").val(console);
debugger;
var data = null;
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "WebService1.asmx/GetPlantMapName",
dataType: "json",
success: function (response) {
tmp = response.d.data;
debugger;
}
});
}
});
推荐答案
.ajax({
type:POST,
contentType:application / json; charset = utf-8,
url:WebService1.asmx / GetConsoleName,
async:false,
dataType:json,
成功:函数(响应){
console = response.d.data;
.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "WebService1.asmx/GetConsoleName", async: false, dataType: "json", success: function (response) { console = response.d.data;
(#hdn)。val(console);
调试器;
var data = null;
("#hdn").val(console); debugger; var data = null;
.ajax({
type:POST,
contentType:application / json ; charset = utf-8,
url:WebService1.asmx / GetPlantMapName,
dataType:json,
成功:函数(响应){
tmp = respons e.d.data;
调试器;
}
});
}
});
.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "WebService1.asmx/GetPlantMapName", dataType: "json", success: function (response) { tmp = response.d.data; debugger; } }); } });
这篇关于Ajax里面的Ajax但它不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文