【发布时间】:2016-09-19 21:53:02
【问题描述】:
我编写了一个 HTML/Javascript 应用程序来生成 JSON 内容。结构有效,但 mimetype 卡在默认 text/html 中。有人可以建议如何设置为 application/json。我最近的尝试是:
块引用
<html>
<head>
<meta http-equiv="content-type" content="application/json; charset=UTF-8"/>
<title>Request JSON Test</title>
</head>
<body>
...
【问题讨论】:
标签: javascript html json mime-types mime