And the difference between v-bind the v-model

1.v-bind dynamically bound instruction comes attribute default value tag is fixed, to be able to add dynamic values ​​of these properties, may be used v-bind: dynamic value you want = "expression"

2.v-bind properties and for binding data, which is the abbreviation ":" is v-bind: id ===: id

3.v-model is a two-way data binding, use the controls on the form used to implement two-way data binding, so if you use the form controls in addition to the label does not have any effect.

Guess you like

Origin www.cnblogs.com/hou-yuan-zhen/p/11897372.html