字符串转数组数组转字符串 字符串转数组let myData = 'Manchester,London,Liverpool,Birmingham,Leeds,Carlisle';let myArray = myData.split(","); 数组转字符串let dogs = ["Rocket","Flash","Bella","Slugger"];let s = dogs.toString(); 结果: