修复 ajax 提交 json 中文乱码的问题

This commit is contained in:
virusdefender
2015-09-25 15:03:09 +08:00
parent 08373ebb02
commit f7a8b80b0c
9 changed files with 12 additions and 13 deletions

View File

@@ -66,7 +66,7 @@ require(["jquery", "avalon", "editor", "uploader", "bsAlert", "csrfToken", "tagE
dataType: "json",
data: JSON.stringify(ajaxData),
method: method,
contentType: "application/json",
contentType: "application/json;charset=UTF-8",
success: function (data) {
if (!data.code) {
bsAlert("题目编辑成功!");