JS Framework Vue.js

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.