//将得到的列表打乱 for(let i=0;i<this.puzzleCellList.length;i++){ let index = Math.floor(Math.random()*this.puzzleCellList.length) let temp = this.puzzleCellList[i]; this.puzzleCellList[i] = this.puzzleCellList[index]; this.puzzleCellList[index] = temp; }
站长微信:xiaomao0055
站长QQ:14496453