今天遇到Jquery 返回json數(shù)據(jù),IE瀏覽器提示下載的問題,當(dāng)提交完數(shù)據(jù)后返回的本來是json數(shù)據(jù)的,在火弧里測試正常,但是IE里老是提示保存,在網(wǎng)上搜索了下,大部分是說將ContentType設(shè)置為"text/xml“本人測試了下,返回值為undefined,
原返回值設(shè)定:context.Response.ContentType = "application/json";
嘗試: context.Response.ContentType = "text/xml;"; 失敗
后來試了下:context.Response.ContentType = "text/plain;charset=UTF-8";
成功!
新聞熱點(diǎn)
疑難解答
圖片精選