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