JS 中的ajax请求
程序员文章站
2022-05-03 21:33:55
...
$.ajax({
url : "/supportmng/pages/poapply/firstCheckerAction.do?actionFlag=addFirstChecker",
type: "GET",
dataType: "json",
data: { area_id: area_id ,location_id: location_id,first_handler: checkers},
async:false,
cache:false,
success : function(data) {
var existFlag = data.success;
if('false' == existFlag){
alert("<bean:message key="first.level.ChoosenDuplication"/>");
}
else
{ var urls="/supportmng/pages/poapply/firstCheckerAction.do?actionFlag=getFirstCheckerAll";
location=urls;
}
},
error : function() {
alert('<bean:message key="sys.err.unknowerror"/>');
}
});
String strJson = (new JSONObject(output)).getString("total_row");
if(strJson != null && !strJson.equals("0"))
{
result = "{\"success\":\"false\"}";
if (null != out)
{
out.print(result);
out.close();
}
上一篇: mootools 中的ajax请求
下一篇: ajax请求中的属性