JS 字符串与数组之间转换

1.数组转字符串 b=a.join(" ");
2.字符串转数组 b=a.split(’ ');

猜你喜欢

转载自blog.csdn.net/sumiao64427/article/details/88664413
今日推荐