📜  按空格分割 javascript 代码示例

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

代码示例1
var text = "hoi how     are          you";
var arr = text.split(/\s+/);