Home>Article>Web Front-end> What is the relationship between node.js and vue.js

What is the relationship between node.js and vue.js

(*-*)浩
(*-*)浩 Original
2019-05-20 15:03:09 27859browse

What is the relationship between node.js and vue.js

node.jsNot a language, not a library, not a framework, just a javeScript runtime environment

Simply node.js It can parse and execute javeScript code. In the past, only browsers could parse and execute JaveScript code.

Now javeScript can be run completely without the browser. All thanks to node.js and

nodejs Built on Chrome's V8 engine [currently the fastest to parse and execute JavaScript]: the code is just a string with a specific format, and the engine can parse and run the code

javeScript in node.js

There is no Bom, Dom

In the javeScript execution environment of node, it provides some basic server operations for javeScript: such as file reading and writing, and the construction of network

services , network communication, http server and other processing

node.js features: event-driven, non-blocking IO model [asynchronous], and lightweight and efficient

Use the package manager npm, npm is the world The largest open source library ecosystem on the Internet, most JaceScript related packages are stored on npm

What is vue.js

vue.js is the most popular Front-end framework, React is the most popular front-end framework [React is used for developing websites and mobile apps. Vue can use wee to develop mobile apps]

vue.js is a framework for building user interfaces. It only focuses on the view layer. Vue has supporting third-party class libraries that can be integrated for the development of large projects

The front-end is responsible for the V [front-end page] layer in MVC

Vue.js is one of the mainstream frameworks of the front-end. Together with Angular.js and React.js, it has become the three mainstream front-end frame!

Why vue.js is needed

The development history of improving development efficiency: native JS -> Class libraries such as Jquery-> Front-end template engine-> Angular.js / Vue.js (can help us reduce unnecessary DOM operations; improve rendering efficiency; the concept of two-way data binding [through the instructions provided by the framework, our front-end programmers only need to care about the business logic of the data, no longer care How DOM is rendered])

In Vue, a core concept is to allow users to no longer operate DOM elements, freeing up users’ hands and allowing programmers to spend more time focusing on business logic.

Related learning recommendations:js video tutorial

The above is the detailed content of What is the relationship between node.js and vue.js. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn