gpt4 book ai didi

javascript - 在对象中访问数组元素

转载 作者:行者123 更新时间:2023-11-29 18:44:50 25 4
gpt4 key购买 nike

<分区>

我已经使用 puppeteer 抓取了这个对象,但它包含的信息比我实际需要的要多。如何访问“组件”中的“高度”?我已经用谷歌搜索了一段时间,但没有找到有效的解决方案。

{
"components": [{
"height": "1.8",
"period": 11,
"trueDirection": 139,
"compassDirection": "SE"
}, {
"height": "5.5",
"period": 8,
"trueDirection": 72,
"compassDirection": "ENE"
}, {
"height": "1",
"period": 13,
"trueDirection": 207,
"compassDirection": "SSW"
}],
"unit": "ft",
"title": "2-3<small class=\"unit\">ft</small>\n",
"fadedRating": 0,
"solidRating": 1,
"time": "Noon",
"date": "Thu 14/02",
"isBigWave": false
}

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com