Joke Collection Website - Mood Talk - Known as the hottest front-end framework Vue at present, what are its remarkable features?

Known as the hottest front-end framework Vue at present, what are its remarkable features?

1, what is Vue? Vue.js is the hottest front-end framework at present. In addition to developing websites, you can also develop mobile apps. Vue.js is one of the mainstream frameworks in the front end, and together with Angular.js and React.js, it has become the three mainstream frameworks in the front end. Vue.js is a framework for building user interfaces, focusing only on the view layer. It is not only easy to use, but also easy to integrate with third-party libraries or existing projects. Vue.js is a progressive framework for building user interfaces. 2. The characteristics of 2.Vue follow the MVVM mode, with simple coding, small size and high running efficiency. Suitable for mobile /PC development, only focusing on UI. It is easy to introduce vue plug-ins or other third library development projects. 3. The relationship between 3.Vue and other front-end frameworks draws lessons from angular's template and data binding technology, and draws lessons from react's componentization and virtual DOM technology. 4.vue's existing plug-ins vue-cli: vue scaffolding and skeleton vue-resource (Axios) are used to build projects: Ajax requests vue-router: routing vuex: state management vue-lazyload: picture lazy loading vue-scroller: page sliding related mint-ui: ui component library based on Vue (mobile terminal). Element-ui: ui component library based on vue (PC side) 5. Learning Vue's ideas and changing Vue's central idea is data-driven, just like the ancient doyen jQuery is structure-driven.

Let's recall that when we write code with jQuery, we often write it like this:

$("#myDiv ")。 html(" hello world ");

These writing methods first need to obtain Dom nodes, that is, Dom structures, and then modify the contents of data update structures. A great purpose of using jQuery is to simplify the operation of Dom, but using Vue is quite different. The use of Vue is directly this.msg=HelloWorld, and then msg will be automatically synchronized to the structure. What we should care about is the change of data content, not how to operate Dom structure.

To sum up: don't think about how to operate DOM, but how to operate data! !