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']; //交换
相关文章
相关标签/搜索