首页 > 技术文章 > 微信小程序js 字符串截取

lsyy2017 2019-10-04 17:30 原文

console.log(time)
输出:qwertyuiop
console.log(time.substring(0, 5))
输出:qwert

推荐阅读