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