【发布时间】:2020-11-10 04:23:01
【问题描述】:
如何转换 Array 的 Objects
var tags= [
{id: 0, name: "tag1", project: "p1", bu: "test"},
{id: 1, name: "tag2", project: "p1", bu: "test"},
{id: 2, name: "tag3", project: "p3", bu: "test"}
];
进入这个二维array:
[["tag1","p1", "test"],
["tag2","p1", "test"],
["tag3","p3", "test"]]
【问题讨论】:
-
你自己试过什么?
标签: javascript node.js arrays object