The main application aspects of vue.js are: 1. For front-end applications with complex interaction logic; 2. It can provide basic architectural abstraction; 3. It can ensure front-end user experience through AJAX data persistence.
The operating environment of this article: windows10 system, vue 2.9, thinkpad t480 computer.
Recommended: "vue tutorial"
What is Vue.js?
Vue.js is a lightweight, high-performance, componentable MVVM library, and has a very easy-to-use API;
Vue.js is a data-driven Web Interface library.
Vue.js is a progressive framework for building user interfaces. Unlike other heavyweight frameworks, Vue adopts a bottom-up incremental development design. Vue's core library only focuses on the view layer, and is very easy to learn and integrate with other libraries or existing projects. Vue, on the other hand, is fully capable of powering complex single-page applications developed with single-file components and libraries supported by the Vue ecosystem. Data-driven, component-based front-end development.
In short: Vue.js is a progressive framework for building data-driven web interfaces. The goal of Vue.js is to enable responsive data binding and composed view components with the simplest possible API. At its core is a reactive data binding system.
Application scenarios of vue.js
Aimed at front-end applications with complex interaction logic;
It can provide basic architectural abstraction;
Can use AJAX data persistence to ensure the front-end user experience
Benefits:
When the front-end does some operations with the data, it can request the back-end through AJAX For data persistence on the end, there is no need to refresh the entire page, only the part of the data that needs to be changed in the DOM needs to be changed. Especially in mobile application scenarios, refreshing the page is too expensive and will reload a lot of resources. Although some will be cached, the DOM, JS, and CSS of the page will be re-parsed by the page. Therefore, mobile pages are usually made into SPA single pages. application.
Features of Vue.js: MVVM framework, data-driven, componentized, lightweight, concise, efficient, fast, and module-friendly
The above is the detailed content of What are the main applications of vue.js?. For more information, please follow other related articles on the PHP Chinese website!