ES6 字符串、数值与布尔值、函数参数的解构赋值

const str="hello world"; const [a,b,...oth]=str;     字符串分割为数组的三种方法: const str="hello world"; const [...str1]=str; const str2=[...str]; const str3=str.split("");     提取字符串的属性和方法: const str="hello world
相关文章
相关标签/搜索