我有以下javascript數組var rows。在Javascript上,如何重新排列數組
[
{ email: '[email protected]' },
{ email: '[email protected]' }
]
其中,我想讓它只是......
[
'[email protected]',
'[email protected]'
]
所以,我想它循環使用的forEach
rows.forEach(function(entry) {
console.log('entry:');
console.log(entry.email);
});
不過,我卡住了。
entry:
[email protected]
entry:
[email protected]
任何幫助表示讚賞。
注意:您已經有標記'node.js'和'javascript'的問題,所以他們不需要在標題中再次列出。 –
好的。注意到喬納森。 –