后端传来的数据

现在需要的数据

完整代码
<template>
<div>
</div>
</template>
<script>
export default {
data() {
return {
webSetting:{
startTime: "2022-03-20T12:46:43.253+0000",
endTime: "2022-03-20T14:24:30.929+0000",
invalid: false,
id: "B220320124643",
type: "ROLL",
},
arr:[{}]
}
},
created(){
for(let i in this.webSetting){
this.$set(this.arr[0],i,this.webSetting[i])
}
console.log(this.arr)
}
}
</script>
<style lang="scss" scoped>
</style>

本文档探讨了后端开发者如何将接收到的日期范围数据('2022-03-20T12:46:43.253+0000'到'2022-03-20T14:24:30.929+0000')适配到前端模板中,并展示了如何通过JavaScript动态创建数组。
2826

被折叠的 条评论
为什么被折叠?



