Vue binding syntax
1. What is binding syntax: a special syntax in Vue that marks where changes may occur within HTML 2. When: Use binding syntax whenever the content of an element in HTML can automatically change with a variable. < element > XXX {{variable name}} XXX </ element > 4. This element is automatically added to the virtual DOM tree when it is created (2). When a variable with the same name in {{}} in new Vue() is changed, the new Vue() object automatically replaces the value of the variable with the value of the new variable in the HTML {{variable name}} position -- no need to do anything to add or remove the cover. (2) Can not put: branch, loop and other program results, and other js expressions that do not return values!Copy the code