隨機獲取數組中的數據

var items = ['f','d','e','s','g','j','k','l','w']; function getRandomElements(arr, count) { var shuffled = arr.slice(0), i = arr.length, min = i - count, temp, index; while (i-- > min) {
相關文章
相關標籤/搜索