var month =“时间:2020-05-01”
console.log(month.substring(3, 13)); //2020-05-01
js方法截取冒号右边的字符串
最新推荐文章于 2024-07-01 19:24:30 发布
var month =“时间:2020-05-01”
console.log(month.substring(3, 13)); //2020-05-01