我正在尝试使用jQuery从带有JSON格式的api获取信息。我可以获取或显示第一个索引“meta”但不显示第二个“结果”(检查URL)
from datetime import *
这是我可以在html中显示的内容:
{
"meta":{
"name":"openaq-api",
"license":"CC BY 4.0",
"website":"https://docs.openaq.org/",
"page":1,
"limit":100,
"found":160
},
"results":[
{
"location":"Aberdeen",
"city":"Aberdeen",
"country":"GB",
"count":23206,
我想进入jQuery,因为后来我想用这个数据显示折线图,比如Morris.js https://morrisjs.github.io/morris.js/index.html#getting-started
这是代码:
openaq-api
CC BY 4.0
https://docs.openaq.org/
1
100
160
[object Object]
[object Object]
[object Object]
[object Object]
有什么想法吗?