1.使用 Array.prototype.reverse() 功能. 在JavaScript 中反轉數組的標準方法是使用reverse() 方法。該方法運行到位,表示修改了原始數組,不創建反向副本。
確定! 回上一頁