标签: javascript arrays
我可以从
let first = ["item1", "item2","item3"] let second = ["1", "2", "3"]
此:
item1 | 1 item2 | 2 item | 3
(我只知道如何循环1个数组,我不是英语,抱歉。)
答案 0 :(得分:1)
试试这个
first.forEach(function(val , ind){ console.log(val + '|' + second[ind]) })