我使用以下api从获取数据,我正在尝试使用以下代码访问那里的json:<!DOCTYPE html><body>
<p>The content is written in JSON format, and can easily be converted into a JavaScript object.p>
快速而肮脏的实验: function fetchHead(url) { request.onreadystatechange= function () { console.log(request.getAllResponseHeaders但实际响应中有十几个标头,如开发工具栏中的Network Inspector所示