📅  最后修改于: 2022-03-11 15:01:20.131000             🧑  作者: Mango
代码示例6
var str = "12,15,16,78,59";
var res = str.split(",");
console.log(res[0]); // result: 12
console.log(res[2]); // result: 16