gpt4 book ai didi

javascript - 在javascript中获取对象项的值

转载 作者:行者123 更新时间:2023-11-30 08:43:20 24 4
gpt4 key购买 nike

我有以下名为 offer 的东西

图片在这里:

enter image description here

我想获取 items_to_giveassetid 的值。我可以通过offer.steamid_other获取steamid_other的值。但是,offer.items_to_give.assedid 未定义。

我怎样才能访问它? (得到它的值(value))

最佳答案

items_to_give 是一个数组,你应该试试这个

offer.items_to_give[0].assetid

关于javascript - 在javascript中获取对象项的值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24242223/

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