📌  相关文章
📜  javascript 从字符中分割字符串 - Javascript 代码示例

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

代码示例2
var str= "12344A56789";
var splitted = str.split('4A'); //this will output ["1234", "56789"]
var first = splitted[0]; //"1234"
var second = splitted[1]; //"56789"
console.log('First is: ' + first + ', and second is: ' + second);