更新时间:2022-05-10 10:52:05 来源:极悦 浏览1079次
极悦小编来告诉大家Ajax调用后台方法
jQuery(function () { jQuery("#fff").click(function (e) { e.preventDefault(); var url ='WebForm1.aspx' + "?rand=" + Math.random(); var str = "btnAjaxGet_click"; jQuery.post(url, {txtname: str}, function (data, static) { if (data = "True") {
ShowUnknowMail(); }
});
});
});
函数 ShowUnknowMail()
{
if (!isWinExist("MailForUnknow"))
{
contentWin = new HWWeb("MailForUnknow");
contentWin.showWindow({ title:'', themeName: "alphacube", url:'../PlaceOrder/MailForUnknow.aspx', top: 200, left:220, width: 550, height: 300});
}
else
{ alrt("这个窗口打开了!"); } }
if (!string.IsNullOrEmpty(Request["txtname"])) { string name = Request["txtname"]; if (name == "btnAjaxGet_click") { Response.Write("True");//这是输出返回值 data=true//ajaxValue(); int i = BllLibrary.ajax();//操作数据库 } else { Response.Write("False"); } }
0基础 0学费 15天面授
Java就业班有基础 直达就业
业余时间 高薪转行
Java在职加薪班工作1~3年,加薪神器
工作3~5年,晋升架构
提交申请后,顾问老师会电话与您沟通安排学习