📜  什么是正确的 json 内容类型 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:16.247000             🧑  作者: Mango

代码示例1
For JSON text:

application/json

The MIME media type for JSON text is application/json. 
The default encoding is UTF-8. (Source: RFC 4627).

For JSONP (runnable javascript) with callback:

application/javascript