const str = '我是1,我是2,我是3';
const res = str.substring(4,7);
console.log('输出结果是---->',res);
06-03
306
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
08-17
1695
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
11-14
1999
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
const str = '我是1,我是2,我是3';
const res = str.substring(4,7);
console.log('输出结果是---->',res);