jquery struts2 结合使用$.post异步请求,action中的代码执行了,回调函数不执行。求大神解答
代码:$.post("/PureWater/commodityAction_purchaseCommodity.action",{"commodity.commodity...
代码:
$.post("/PureWater/commodityAction_purchaseCommodity.action", {
"commodity.commodityID" : $(this).attr("id"),
}, function(data) {
alert(data);
}, "text/html");
response.getWriter().write("flase");
return "success";
<result name="success"></result> 展开
$.post("/PureWater/commodityAction_purchaseCommodity.action", {
"commodity.commodityID" : $(this).attr("id"),
}, function(data) {
alert(data);
}, "text/html");
response.getWriter().write("flase");
return "success";
<result name="success"></result> 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询