const disorderArray = (data) => data.sort(() => Math.random() > 0.5 ? -1 : 1);
复制代码
转载于:https://juejin.im/post/5cb7e0ac51882532a1467d98
const disorderArray = (data) => data.sort(() => Math.random() > 0.5 ? -1 : 1);
复制代码
转载于:https://juejin.im/post/5cb7e0ac51882532a1467d98