前台页面用encodeURIComponent()这个js方法rule=encodeURIComponent(rule);//对特殊字符编码 后台页面java.net.URLDecoder urlDecoder=new java.net.URLDecoder(); urlDecoder.decode("rule","utf-8");