直接上代码:
this.list = res
let arr = this.list //列表
arr.forEach((item,index) => { //循环遍历
item.time=item.time.split(' ')[0]
});
直接上代码:
this.list = res
let arr = this.list //列表
arr.forEach((item,index) => { //循环遍历
item.time=item.time.split(' ')[0]
});