ES6系列學習(3)

1.新增的字符串函數 startsWith()、endsWith()、includes()、repeat() 2.對象解構 3.數組解構 const numbers = ['one','two','three','four','five']; const [one,...others] = numbers; others = ['two','three','four','five']; //交換
相關文章
相關標籤/搜索