ajax请求时候乱码
$.ajax({
url: "${ctx}/floatAdv/floatAdv.do?action=saveFloatAdvForm",
contentType: "application/x-www-form-urlencoded; charset=utf-8", //默认值,适合大多数应用场合
data: {"adName":adName,"isOpen":isOpen,"remark":remark,"context":context},
type : "post",
success: function (text) {
form.clear();
showFCKDetailDesc.html("");
FloatAdvDataGrid.reload();
FloatAdvAddOrEditOnCancel();
},
error: function (jqXHR, textStatus, errorThrown) {
alert(jqXHR.responseText);
}
});
// 当ajax的post请求时候出现乱码 可以机上contentType来解决
// ajax的get请求乱码可以在tomcat配置URIEncoding="UTF-8"来解决 相关推荐
kentrl 2020-11-10
结束数据方法的参数,该如何定义?-- 集合为自定义实体类中的结合属性,有几个实体类,改变下标就行了。<input id="add" type="button" value="新增visitor&quo
ajaxyan 2020-11-09
zndy0 2020-11-03
学留痕 2020-09-20
learningever 2020-09-19
chongxiaocheng 2020-08-16
ajaxhe 2020-08-16
lyqdanang 2020-08-16
curiousL 2020-08-03
时光如瑾雨微凉 2020-07-19
坚持着执着 2020-07-16
jiaguoquan00 2020-07-07
李永毅 2020-07-05
坚持着执着 2020-07-05