Home > front end >  Hidden elementui according to the condition control button on the display
Hidden elementui according to the condition control button on the display

Time:11-22

This is on page three button

If according to v - if only control button has been show or hide not dynamic control

Can you declare a variable inside the button to the variable load data: {} and then write a page refresh inside calls the method method in judging true or false control these a few button to show or hide the

Probably is to write A page refresh the method called method inside me in through the login user name to control the display of this A few button hidden logged in to see A landing in can see button B
Don't know the description clear not clear front novice a front-end hope that eldest brother help have a look at the thank you very much!!!!!!

CodePudding user response:

 



 

New Vue ({
Data: {
IsShow: false
},
//method a
//create the page triggered when
Created () {
The enclosing isShow=true//write condition
},
//method using two attribute
//calculate attribute
The computed: {

},
//three
//listen
Watch: {

}
})

CodePudding user response:

refer to the second floor weixin_50944805 response:
 



 

New Vue ({
Data: {
IsShow: false
},
//method a
//create the page triggered when
Created () {
The enclosing isShow=true//write condition
},
//method using two attribute
//calculate attribute
The computed: {

},
//three
//listen
Watch: {

}
})

would you please tell me why v - if in h1 inside before I use method is an I in the button definition of v - if still on holiday and define a variable condition and then hook function call method but this doesn't work as long as the button of the v - if not true has been hide status
  • Related