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
今日推荐
周排行