gpt4 book ai didi

javascript - 转换数组javascript中收到的字符串

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

<分区>

Possible Duplicate:
How to parse JSON in JavaScript

我得到一个这样的字符串

 [["1","Pagamento de Placa","N","N"], ["2,""Contrato","N","N"], ["3","Ajuste de preço","N","N"],["4", "Abertura de cliente","N","N"], ["9","Outros","N","S"]]

我试试

 var arr = new Array([["1","Pagamento de Placa","N","N"], ["2,""Contrato","N","N"], ["3","Ajuste de preço","N","N"],["4", "Abertura de cliente","N","N"], ["9","Outros","N","S"]]);

但不工作

我想变成一个真正的数组,知道怎么做吗?

谢谢

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