new Vue({
el: '#app',
data: {
showOne:false,
showTwo:false
}
methods: {
changeStatus(){
if("设置的条件"){
this.showOne= true;
this.showTwo= true;
}
}
}
})
Vue 컨트롤 요소 표시 및 숨기기, v-if 사용
추천
출처blog.csdn.net/qq_41353397/article/details/113748557
행