Vue basis - v-bind modify properties

<div ID = "App">
<label for = "R1"> Modify Color </ label> <INPUT type = "CheckBox" = V-Model "use" ID = "R1">
<br> <br>
<div v-bind: class = "{ 'class1': use}"!> <- if use is true, then { 'class1': use} = class1, otherwise empty ->
V the bind-: instruction class
</ div>
</ div>

<Script>
new new Vue ({
EL: '#app',
Data: {
    use: assignment to false // here is false, there is no call Class1
}
});
</ Script>

Guess you like

Origin www.cnblogs.com/clamp7724/p/11267583.html