gpt4 book ai didi

javascript - 循环遍历二维数组以获取第二列值

转载 作者:行者123 更新时间:2023-11-29 19:58:40 25 4
gpt4 key购买 nike

var linkArray = [
['boothsizeDiv_link', false],
['furnishingsprovidedDiv_link', false],
['electricalDiv_link', false],
['rentalfurnishingsDiv_link', false],
['gesgraphicsDiv_link', false],
['geslaborDiv_link', false],
['contractorDiv_link', false],
['carpetingDiv_link', false],
['boothlightingDiv_link', false],
['javitsDiv_link', false],
['boothsealDiv_link', false],
['mannequinsDiv_link', false],
['calcDiv_link', false]
];

我如何遍历此数组以从该数组中获取所有“假”值?

最佳答案

使用循环

for (var i=0;i<linkArray.length;i++)
{
document.write(linkArray[i][1] + "<br>");

}

关于javascript - 循环遍历二维数组以获取第二列值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15408024/

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