Jquery returns json data that prompts for download in Internet explorer
- 2020-03-30 02:59:27
- OfStack
Today, I encountered the problem that Jquery returned json data, and Internet explorer prompted me to download it. When I submitted the data, I returned json data, which was tested in the fire arc. However, Internet explorer always prompted me to save it.
The return value set: the context. The Response. ContentType = "application/json";
Try: context. The Response. ContentType = "text/XML." ; failure
Later tried: under the context. The Response. ContentType = "text/plain; Charset = utf-8 ";
Success!
The return value set: the context. The Response. ContentType = "application/json";
Try: context. The Response. ContentType = "text/XML." ; failure
Later tried: under the context. The Response. ContentType = "text/plain; Charset = utf-8 ";
Success!