使用JavaScript求值

问题描述 投票:0回答:1

我只想在We中达到10。

我尝试过:console.log(gauge.cache[0][0]),但结果是:

We:"10"

如何只获得10个?

gvjs_N {iq: null, Kf: Array(1), hg: Array(2), Mr: null, cache: Array(1), …}
    Kf: [{…}]
    Mr: null
    cache: Array(1)
        0: Array(1)
            0:
                We: "10"
                __proto__: Object
                length: 1
        __proto__: Array(0)
        length: 1
        __proto__: Array(0)
javascript arrays key-value console.log proto
1个回答
0
投票

尝试

console.log(gauge.cache[0][0].We)
© www.soinside.com 2019 - 2024. All rights reserved.