摘要: ####数组与字符串互相转换 let arr = ["aa","b","c"] let str = arr.join("-") //数组 --> 字符串 "aa-b-c" let arr2 = str.split("-") //字符串 --> 数组 ["aa","b","c"] ####join() 阅读全文
posted @ 2020-12-03 15:35 huihuihero 阅读(164) 评论(0) 推荐(0) 编辑