JS 字符串分割数组

JS 字符串分割数组

var str = "ab0123c"var reg = .{1,3}gvar arr = str.match(reg)console.info(arr)一、数组转字符串需要将数组元素用某个字符连接成字符串,示例代码
JavaScript280