修复 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

@@ -46,7 +46,7 @@ require(["jquery", "avalon", "editor", "uploader", "bsAlert", "csrfToken", "date
beforeSend: csrfTokenHeader,
url: "/api/admin/contest/",
dataType: "json",
contentType: "application/json",
contentType: "application/json;charset=UTF-8",
data: JSON.stringify(ajaxData),
method: "post",
success: function (data) {