微信小程序js 字符串截取

console.log(time)

输出:qwertyuiop

console.log(time.substring(0, 5))

输出:qwert