HTTP标头上有多个值
它是否正确?
var headers = new Headers(); headers.append('Accept', 'application/json, application/pdf')
我想接受json和pdf文件。
是的, 这是正确的 。 示例表格w3c:
Accept: text/plain, text/html
它是否正确?
var headers = new Headers(); headers.append('Accept', 'application/json, application/pdf')
我想接受json和pdf文件。
是的, 这是正确的 。 示例表格w3c:
Accept: text/plain, text/html