<script>
export default {
data() {
return {
a: ['2021-12-11 00:00:00',
'2021-12-11 01:00:00',
'2021-12-12 01:00:00',
'2021-12-14 02:00:00',
'2021-12-12 06:00:00',
'2021-12-13 00:00:50'
]
}
},
onLoad() {
this.foo()
},
methods: {
foo() {
let r = this.a.map(i => i.split(' ')[0])
r = [...new Set(r)]
let bianliang = r.map(i => this.a.find(t => t.indexOf(i) > -1))
}
}
}
</script>
11-22
2508
08-12
8811
06-28
6585
08-31
4829
03-01
2885
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交