📌  相关文章
📜  JavaScript 将字符串拆分为字符数组 - Javascript 代码示例

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

代码示例1
// split the text into array of chars using empty string
console.log("ABCDEFGHIJK".split(''));

// split the text into array of chars using empty string and limit to 3 chars
console.log("ABCDEFGHIJK".split('', 3));