【发布时间】:2022-09-26 16:43:08
【问题描述】:
我坚持编写一个javascript es6函数来将对象数组转换为一个像这样的对象
[
{\"uptime\":\"411694300\"},
{\"temperature\":\"54\"},
{\"model\":\"24P\"},
{\"version\":\"5.3.12\"},
{\"hostname\":\"LAB\"}
];
至
{
\"uptime\":\"411694300\",
\"temperature\":\"54\",
\"model\":\"24P\",
\"version\":\"5.3.12\",
\"hostname\":\"LAB\"
};
标签: javascript node.js