1. Introduction to jQuery:
jQuery was and is still the most popular web front-end js library, but now it is used both domestically and abroad.
The usage rate is gradually being replaced by other js libraries. As browser manufacturers uniformly follow the HTML5 specification and ECMA6
The implementation of the browser side, the usage of jQuery will be lower and lower
2. Vue introduction:
Vue is a rising front-end js library and a streamlined MVVM. Technically, Vue.js focuses on MVVM
Model's ViewModel layer. It connects the View layer and the Model layer through two-way data binding, and through the logarithm
The operation of the data can complete the rendering of the page view. Of course, there are many other mvmm frameworks such as Angular and react
They are similar, and are essentially based on the concept of MVVM. However, vue is simple, fast, combined, and compact with its unique advantages.
Collective, powerful and rapidly rising
3. The difference between vue and jQuery:
3.1) The comparison between vue and jQuery jQuery is to use the selector () to select the DOM object, assign and retrieve it
Value, event binding and other operations, in fact, the difference from native HTML is that it is more convenient to select and manipulate DOM pairs
image, while data and interface are together
3.2) For example, you need to get the content of the label tag:) Select the DOM object, and assign, value, and event to it
Binding and other operations, in fact, differ from native HTML only in that DOM objects can be selected and manipulated more conveniently, while data
together with the interface
3.3) For example, you need to get the content of the label tag: ("lable").val();, it still depends on the value of the DOM element.
Vue completely separates data and View through Vue objects
3.4) It is no longer necessary to refer to the corresponding DOM object to operate the data. It can be said that the data and View are separated.
They realize mutual binding through the vm of the Vue object, which is the legendary MVVM
If you are interested, you can read more information, thank you