Vue.js reference: Http://cn.vuejs.org/guide/installation.html Regardless of the framework used, the first is to create an instance of it: var vue = New Vue ({
//Parameters })Summary of Knowledge Points: 1. Binding: Using the Double "mustache" syntax, such as: {{}} Extended knowledge: Using three mustache, you can output HTML, such as: {{}}}Mustache tags can also be used in HTML features (Attributes): Div id="item-{{ID}" ></ div> 2. Two-way binding: As above, you can bind the parent and child elements. 3. Render list: This is the way to render by attributes, V-for= '. 4. Handling user input: In fact, it is a binding event, using v-on:click= '; To handle the user's input; note: Dynamically rendering arbitrary HTML on a Web site is dangerous because it can easily lead to XSS attacks. Remember, HTML interpolation is used only for trusted content,
neverUsed for user-submitted content. Cons: The Vue.js core does not include routing and AJAX functionality by default,
JS Framework Vue.js