KindEditor解决浏览器兼容性的问题

KindEditor的图片上传插件,对浏览器兼容性不好。

使用@ResponseBody注解返回java对象,

Content-Type:application/json;charset=UTF-8

返回字符串时:

Content-Type:text/plan;charset=UTF-8

 

指定响应结果的content-type:

KindEditor的多图片上传插件最后响应的content-type是text/plan格式的json字符串。兼容性是最好的。

posted @ 2018-05-21 17:45  御前提笔小书童  阅读(516)  评论(0编辑  收藏  举报