📜  js语句到数组 - Javascript代码示例

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

代码示例1
var str = "This is an amazing sentence.";
var words = str.split(" ");
console.log(words);
//["This", "is", "an", "amazing", "sentence."]