我想使用JavaScript遍历值列表。
我的列表如下所示:
Label: A Value: Test Count: 4
Label: B Value: Test2 Count: 2
Label: C Value: Test3 Count: 4
Label: D Value: Test4 Count: 1
Label: C Value: Test5 Count: 1
我的目标是根据标签将每一行传递给不同的函数。我正努力弄清楚是否使用多维数组是最好的选择。