html代码: <a class="btn btn-success btn-sm" style="margin-left:50px;" onclick="settle()">进入结算中心</a>
js代码: function settle(){
var totalprice=$("#totalPrice").text();
$.get("/MySuperMarket/settle.action",{"totalprice":totalprice});
}
struts配置:
<action name="settle" class="cusAction" method="settle"><result name="success">/customer/settle.jsp</result></action>
断点可以走完settle方法能正常运行,return的是success但是就是跳不到settle页面?是不是js里面错了?
添加回答
举报
0/150
提交
取消