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