调试的时候乱跳!
我的问题是由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) {
}
});
})