Resource interpreted as Document but transferred with MIME type application/json
Posted sharpest
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Resource interpreted as Document but transferred with MIME type application/json相关的知识,希望对你有一定的参考价值。
转自: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的主要内容,如果未能解决你的问题,请参考以下文章
解决“Resource interpreted as Document but transferred with MIME type application/json”问题
Resource interpreted as Stylesheet but transferred with MIME || DevTools failed to parse Source
Resource interpreted as Stylesheet but transferred with MIME type text/html: css失效
nginx - Resource interpreted as Stylesheet but transferred with MIME type text/plain
springBoot+thymeleaf遇到Resource interpreted as Stylesheet but transferred with MIME type text/plain(示
Resource interpreted as Stylesheet but transferred with MIME type text/html