码迷,mamicode.com
首页 > 移动开发 > 详细

Resource interpreted as Document but transferred with MIME type application/json

时间:2019-09-20 12:44:36      阅读:121      评论:0      收藏:0      [点我收藏+]

标签:Enctype   并保存   修改   cat   document   with   nbsp   resource   表单   

转自:https://blog.csdn.net/just_lover/article/details/81207472

我在修改并保存后,界面返回提示“undifine”,实际我是看到有返回提示的。控制台输出的是“Resource interpreted as Document but transferred with MIME type application/json ”

检查发现我在修改的时候并没有上传文件, 而表单的表头是<form id="dialogform" method="post" enctype="multipart/form-data">

我提交用的.form()方法,datatypy:json。注意:我用的“submit”

然后我用$.post()方法替代后就没有报错了。

Resource interpreted as Document but transferred with MIME type application/json

标签:Enctype   并保存   修改   cat   document   with   nbsp   resource   表单   

原文地址:https://www.cnblogs.com/sharpest/p/11555789.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!