$.ajax({ url: '${managerPath}/customer/updateOrder.do', type: 'POST', async: false, data: { id: date, }, success: function(data) { if (data.code) { alert(data.msg); location.href = '${managerPath}/customer/orderlist.do'; } else { alert(data.msg); } } })