日期:2014-05-16  浏览次数:20839 次

ajax请求实例

       	    $.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"/>');
					}
				});