substring方法

let text = '616161648616_612616'
//截取到字符_
const id = text.substring(text.indexOf('_') + 1, text.indexOf(','));