📜  javascript 爆炸空间 - Javascript 代码示例

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

代码示例1
var str   = "my car is red";
var stringArray = str.split(/(\s+)/);

console.log(stringArray); // ["my", " ", "car", " ", "is", " ", "red"]