【发布时间】:2022-08-08 21:42:11
【问题描述】:
我的数据:
const quantity = {quantity: 13, code: \"AAA\", warehouse: \"1000\",}
我需要的回应:
[{quantity: 13, code: \"AAA\", warehouse: \"1000\",}];
如何将对象转换为具有键和值的数组?
谢谢。
-
这回答了你的问题了吗? How to convert JSON object to JavaScript array?
标签: javascript arrays json typescript object