vue控制元素显示隐藏,使用v-if

new Vue({
    el: '#app',
    data: {
        showOne:false,
        showTwo:false
     } 
    methods: {
	   changeStatus(){
		  if("设置的条件"){
		      this.showOne= true;
		      this.showTwo= true;  
          }
       }
    }
 })

猜你喜欢

转载自blog.csdn.net/qq_41353397/article/details/113748557