【发布时间】:2019-01-31 12:00:22
【问题描述】:
请考虑以下示例: https://codepen.io/anon/pen/aadBGJ?editors=1111
我正在尝试将表格读入 JS 对象,但不知何故它只存储了最后一行。
我明白了:
{
ean: "test3",
sku: "0003"
}
我想得到:
[
{
ean: "test1",
sku: "0001"
},
{
ean: "test2",
sku: "0002"
},
{
ean: "test3",
sku: "0003"
},
]
非常感谢您的意见,谢谢!
【问题讨论】:
标签: javascript html-table prototypejs