Home > Article > Web Front-end > Does vue include jQuery?
vue does not include jquery; vue is an open source JavaScript framework used to create user interfaces. Although jquery is also a JavaScript framework, jquery uses a selector to select DOM objects, assign values, and obtain values. Event binding and other operations, while Vue no longer needs to reference the corresponding DOM object to operate data, there is no inclusive relationship between the two.
The operating environment of this article: Windows 10 system, jquery version 3.6.0, Dell G3 computer.
vue does not contain jquery
What is Vue?
vue is an open source JavaScript framework for creating user interfaces and a Web application framework for creating single-page applications; the core of Vue's focus is the view layer in the MVC pattern. At the same time, it also It can easily obtain data updates and realize the interaction between the view and the model through specific methods within the component.
Vue.js is a front-end JavaScript framework for building user interfaces. It's open source. It can also be used as an integration tool when using other JavaScript libraries. It is incrementally adaptive in nature. Vue is also used as a web application framework that can power single-page applications. It was created in 2014 and is cross-platform.
Vue is mainly used for front-end development, such as components, declarative UI, etc., which is more approachable.
From a technical perspective, Vue.js focuses on the ViewModel layer of the MVVM model. It connects the View layer and the Model layer through two-way data binding, and the rendering of the page view can be completed by operating on the data.
What is jquery?
jquery is a fast, small and feature-rich javascript library. With an easy-to-use API that works across multiple browsers, jQuery makes things like traversing and manipulating HTML documents, event handling, animations, and Ajax much simpler.
jQuery syntax is designed to easily navigate documents, such as selecting DOM elements, creating animations, handling events and developing Ajax applications. It can also be used to create plugins on top of JavaScript libraries.
What is the difference between jquery and vue.
Working principle
Vue achieves complete separation of data and view. It first binds the value to the js object. Then modify the value of the js object, and the Vue framework will automatically update the value of the dom. To operate on data, you no longer need to refer to the corresponding DOM object. They realize the mutual binding of data and views through Vue objects.
jQuery must first use the selector ($) to select the dom object, and then perform operations on the dom object (such as assignment, value acquisition, event binding, etc.).
Focus on
vue focuses on data binding and can be applied to background pages for complex data operations. For example: form filling page
jquery focuses on style operations, animation effects, etc.; it can be applied to some html5 animation pages and some pages that require js to operate the page style.
Recommended related tutorials: jQuery video tutorial
The above is the detailed content of Does vue include jQuery?. For more information, please follow other related articles on the PHP Chinese website!