📜  Js拆分方法 - Javascript代码示例

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

代码示例6
// Split a string into an array of substrings:
var String = "Hello World";
var Array = String.split(" ");
console.log(Array);
//Console:
//["Hello", "World"]

///*The split() method is used to split a string into an array of substrings, and returns the new array.*/