2023-01-19 Vue keys():返回一個新的Array Iterator對象,其中包含數組中每個索引的鍵 keys():返回一個新的Array Iterator對象,其中包含數組中每個索引的鍵 const array1 = ['a', 'b', 'c']; const iterator = array1.keys(); for (const key of iterator) { console.log(key); } //0 //1 //2 Newer pop()刪除最後一個元素並返回該元素 Older Math.round():四捨五入