📅  最后修改于: 2022-03-11 15:02:19.089000             🧑  作者: Mango
var str = '012123';
var strFirstThree = str.substring(0,3);
console.log(str); //shows '012123'
console.log(strFirstThree); // shows '012'