JS 字符串分割数组var str = "ab0123c"var reg = .{1,3}gvar arr = str.match(reg)console.info(arr)使用split方法就行了var array = "2023-03-20JavaScript200