特殊字符处理
前台:'&content='+escape(encodeURIComponent(content))
后台:URLDecoder.decode(request.getParameter("content"),"utf-8")
参数过长处理
$.post("<%=basePath%>cmntController/saveComment.do",{"entityId":entityId,"dataid":objectId,"content":content,"replyEmpId":replyEmpId,"replyCommentId":commentId,"atDataArray":atDataArray},function(data){ alert('评论成功'); });原文链接:https://www.f2er.com/ajax/164699.html