为了账号安全,请及时绑定邮箱和手机立即绑定

二维数组转json对象

二维数组转json对象

凤凰求蛊 2019-02-20 17:13:09
var colName = [    ["08020092", "AVX",  "1200m", "120", "0.3", "30u"],    ["08020098", "KEMET",  "1200m", "120", "1.0", "100u"],    ["08020000", "VISHAY",  "1200m", "120", "2.5", "250u"],]var json=[{0:"08020092",1: "AVX", 2: "1200m", 3:"120",4: "0.3", 5:"30u"},{0:"08020098",1: "AVX", 2: "1200m", 3:"120",4: "1.0", 5:"100u"},{0:"08020000",1: "AVX", 2: "1200m", 3:"120",4: "0.3", 5:"250u"},]上面这个colName如何转换成下面那个json格式
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 245 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信