日期:2014-05-16 浏览次数:20460 次
$("#subAjax").click(function () {
CKupdate(); //在提交表单前需要做以上处理
$.post("getProductDesc.do", $("#form1").serialize(), function (data) {
if (data == "sucess") { alert("成功"); } else { alert("失败"); }
});
});
@RequestMapping("/getProductDesc")
public String getProductDesc(HttpServletRequest req, HttpServletResponse resp)
{
String productDesc = req.getParameter("editor");
.......
}
@RequestMapping("/getProductDesc")
public String getProductDesc(HttpServletRequest req, HttpServletResponse resp)
{
String productDesc = req.getParameter("editor");
.......
resp.write("sucess");
}
resp.getWriter().write("sucess");