首页
{{tour[0]['children'][0]['title']}}
{{tour[0]['children'][0]['type']}}
{{tour[0]['children'][0]['value']}}
Click Me!
!(function () {
const app = new Vue({
data: {
tour: [
{
children: [
{
title: '标题',
type: 0,
value: '内容',
}
]
}
]
},
created() {
},
mounted() {
},
computed: {},
watch: {},
methods: {
changeChildren() {
this.$set(this.tour[0]['children'][0], 'type', 666);
this.$set(this.tour[0]['children'][0], 'value', '法法发');
this.$set(this.tour[0]['children'][0], 'title', '嗖嗖嗖');
}
},
}).$mount('#app');
})();