// es51.for循环遍历,再push数组 arr.push(str[i])2.arr = Array.prototype.slice.call(str)3.arr = str.split('')// es64.展开运算符 arr = [...str]5.arr = Array.from(str)