解决方案 »
- 怎么取C#取word合并后的Cell中的Text
- 我在c#中写了一个串行接口的类,想把它做成如同类库中的TextBox,label等拿来即可用的类,怎样做啊?
- C#里面WebBrowser如何设置COOKIE?
- c# oledb add添加数据到数据库,参数未声明
- MessageQueue与Queue有何区别?
- 以下代码最后一句运行时候报错无效参数
- 有多态继承性的概念吗?
- c#调用C++DLL问题,请教大家
- 大家帮忙解决下,我在简体系统下作的UI但是在繁体系统下它的控件发生错位,是咋回事!
- 希望能得到思归,知秋,CForce及其微软MVP得指点,开发WindowsForm程序应该对哪些方面精通?
- CS Listview用法求助
- C#如何模拟真实的键盘输入?
*****************************************************************************
签名档: http://feiyun0112.cnblogs.com/
strdisplay: function () { $.ajax({
type: "post",
dataType: "JSON",
url: "AjaxMonitor.aspx",
data: $("form:eq(0)").serialize() + "&v=" + Math.random(),
success: function (data) {
alert(data.display);
art.dialog.tips(data.display);
$("#txtrich").val($("#txtrich").val() + data.display);
// $("#txtrich").val( $("#txtrich").val()+data.display);
if (data.displayFlag == "0") {
setTimeout(function () { funs.strdisplay(); }, 2000);
} else {
art.dialog.tips("修改结束...");
$("#txtrich").val($("#txtrich").val() + "修改结束...");
}
}
}); },
update: function () {
if (funs.getIds() == "") {
art.dialog.tips("请选择记录进行修改!"); return false;
}
$("#txtrich").html("开始修改!\r\n");
funs.strdisplay();
funs.updateFunction(funs.getIds());
},
updateFunction: function (ids) {
$.ajax({
type: "post",
dataType: "JSON",
url: "WebBSCpwd.aspx",
data: $("form:eq(0)").serialize() + "&type=update&method=ajax&id=" + ids + "&v=" + Math.random(),
success: function (data) {
if (data.state == "1") {
art.dialog.tips("修改完成!");
} else { art.dialog.tips("修改失败!");
}
}
});
return false; },
获取设备返回的信息放在Session中
Response.Clear();
Response.Write(string.Format(@"{{""displayFlag"":""{0}"",""display"":""{1}""}}", Session["displayFlag"], Session["display"]));
Response.End();
但是前台没有显示返回值
上面有循环调用
setTimeout(function () { funs.strdisplay(); }, 2000);
strdisplay: function () { $.ajax({
type: "post",
dataType: "JSON",
url: "AjaxMonitor.aspx",
data: $("form:eq(0)").serialize() + "&v=" + Math.random(),
success: function (data) { alert(data.display);
art.dialog.tips(data.display);
$("#txtrich").val($("#txtrich").val() + data.display);
// $("#txtrich").val( $("#txtrich").val()+data.display);
if (data.displayFlag == "0") {
setTimeout(function () { funs.strdisplay(); }, 2000);
} else {
art.dialog.tips("修改结束...");
$("#txtrich").val($("#txtrich").val() + "修改结束...");
}
} }); },上一个红色的执行了就下一个红色的了,中间的没执行,但是在全部执行结束后有能弹框执行红色中间的代码