最近几天在学习jQuery ...关于前台调用 [webMethod]方法 $.ajax({})方法使用。
$.ajax({
type: "POST",
ontentType: "application/json; charset=utf-8", //注意这一行一定要写。否则报错。。
url: "HHTSConfiguration.aspx/ValidateCommonScreen",// 页面/方法
data: "{}",
dataType: "text",
success: function(result) {
if (result.indexOf("true") >= 0) {
ShowConfigurationWindow();
}
else {
alert("<%=strCommonScreenParam %>");
return;
}
}
});
浙公网安备 33010602011771号