**********************************************************
1 /** 2 * 订单取消 3 * @return {Boolean} 处理是否成功 4 */ 5 function orderCancel(orderId, commant){ 6 var flag = false; 7 $.ajax({ 8 type: "POST", 9 url: "../order/orderCancel.action", //orderModifyStatus 10 data: {"orderId":orderId,"commant":commant}, 11 dataType:"json", 12 async:false, 13 cache:false, 14 success: function(data){ 15 var member = eval("("+data+")"); //包数据解析为json 格式 16 if(member.success=="true"){ 17 flag = true; 18 }else if(member.success=="false") { 19 alert(member.info); 20 } 21 }, 22 error: function(json){ 23 alert("订单取消异常,请刷新后重试..."); 24 } 25 }); 26 hidediv(); 27 return flag; 28 } 29 30 31 2.32 33 data: "orderId=" + orderId + "&commant=" + commant
$.post("url",{"id":id},function(ReturnData){ }); response.getWrite().print(ReturnData);