后台返回数据——2022-03-07_15:57:40
想要15:57:40
怎么截取?
that.data.time_cl = val.time_cl
for(let i=0;i<val.time_cl.length;i++){
console.log(val.time_cl)//2022-03-07_15:57:40
// that.data.time_cl = val.time_cl.split("-").splice(0,2);
that.data.time_cl =right(val.time_cl,3)//right is not defined
console.log(that.data.time_cl)
}