Use of vue v-model

Vue is one of the core features of two-way binding, responsive vue principle is to achieve data -> View

v-bind only achieve one-way data binding, automatically bound from M to V

Can be achieved using the v-model form elements of two-way binding and can only be applied to the form element (<input radio text address email ...>, <select>, <textarea>, <checkbox>, components), modifiers .lazy (substituted change event listener input) ,. number (input character string into a valid number) ,. trim (input filter and trailing spaces)

Guess you like

Origin www.cnblogs.com/sylys/p/11696561.html