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: