导航

该进程或线程自上一个步骤以来已更改

Posted on 2015-11-02 01:27  yiyishuitian  阅读(1253)  评论(0编辑  收藏  举报

调试的时候乱跳!

我的问题是由aspx页面的 异步造成的. 代码如下: 一个click事件中有两个 ajax所以,导致在调整的时候进程乱跳. 解决办法就是把其中一个去掉.

$("#btn").click(function()[

$.ajax({
type: "get",
datatype: "json",
cache: false,
url: "AjaxHandler.ashx?action=xxxxxxxx",
data: "tarAccountid=" + $("#hidTargetAccountId").val(),

success: function (msg) {
var jsonstr = eval("(" + msg + ")");
}
});

$.ajax({
type: "get",
datatype: "json",
cache: false,
url: "AjaxHandler.ashx?action=xxxxxxxx",
data: "accountId=" + $("#hidAccountId").val() ,

success: function (msg) {

}
});



})