Vue.js theory!

Source: Internet
Author: User

1, aside from the manual operation of the DOM thinking, Vue.js is data-driven, you do not have to manually manipulate the DOM.


2, the DOM and data are bound together, the DOM will be synchronized with the data, whenever the data changes, the DOM will be updated accordingly.


3. MVVM Mode (Model-view-viewmodel)

How ViewModel interacts with the view and model.

Model is placed in data (possibly multiple)

View placed in El (View {{}} may have many items corresponding to model)


4, ViewModel is the core of vue.js, it is a Vue instance.

The Vue instance acts on an HTML element,

This element can be the BODY element of the HTML,

It can also be an element that has an ID specified.


5. All elements are responsive

Vue.js theory!

Related Article

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.