数组转字符串 字符串转数组

数组转字符串

arry.toString()

arry.join(",")

 

字符串转数组

string1.split(",")

 

你可能感兴趣的:(前端小知识)