$.ajax({
url: "/xxx/xxxx,
Type: "post",
data: {
id: xxxx,
},
success: function (text) {
if (text == "True") {
alert("操作成功!");
}
如上所述,非常普通的ajax就是第二次调用不进success或error或complete
添加属性字段 cache : false 也没用,
确定不是代码原因后 最后添加属性字段 async : false (异步执行,默认true)
成功解决问题。