1 回答
TA贡献1796条经验 获得超10个赞
您的控制器等待为currentStateDatas,string但在您的 js 代码中它是一个对象,您还应该currentStateDatas使用JSON.stringify.
$.ajax({
url: "@Url.Action("SaveTempReport", "Report")",
type: "POST",
dataType: "json",
contentType: "application/json; charset=utf-8",
data: JSON.stringify({ "categoryIds": categoryIds,
"reportName": reportName,
"Description": description,
"tempReportId": tempReportId,
"chartState": JSON.stringify(currentStateDatas),
"deparmentIds": deparmentIds}),
success: function (response) {
}
});
- 1 回答
- 0 关注
- 88 浏览
添加回答
举报