📜  在javascript代码示例中根据长度拆分字符串

📅  最后修改于: 2022-03-11 15:03:07.542000             🧑  作者: Mango

代码示例1
"123456789".match(/.{1,2}/g);
// Results in:
["12", "34", "56", "78", "9"]