Js 随机从数组中获取一个元素 const randomItem = items => items[Math.random() * items.length | 0]; 前端 2023-12-11 150 点赞 2 评论 227 浏览