卢卢的前端知识库
链接:https://blog.csdn.net/weixin_45441470/article/details/123755305
最常用的两个:
let str = 'helloworld' str.split('') //结果:['h','e','l','l','o','w','o','r','l','d']
var a = [1, 2, 3, 4, 5] var s = a.join('-') //s:'1-2-3-4-5'
高级写法: 看上述文章