关于ie浏览器不支持json数据,IE提示下载json问题。

返回json数据,IE浏览器提示下载的问题,
其他浏览器没有问题,IE浏览器会提示json下载,保存文件,

解决办法

原返回值:context.Response.ContentType = "application/json"; 

修改成:
context.Response.ContentType = "text/html;charset=UTF-8"; 

猜你喜欢

转载自www.cnblogs.com/wjhaaa/p/9259749.html