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