react.js map 怎么获得索引值

2025-05-10 12:08:58
推荐回答(1个)
回答1:

const bordercolors=["red", "blue", "yellow"]
{bordercolors.map((value, index)=>

)}