Home >Web Front-end >JS Tutorial >What is the relationship between vue and node?
It doesn’t matter. Vue is a front-end framework, one of the three major frameworks of js. Node is a back-end development language, the same as php, java, and c#. But they can be used together.
Node is a development platform that allows JavaScript to run on the server side. It makes JavaScript on par with server-side languages such as PHP, Python, Perl, and Ruby. scripting language. Released in May 2009 and developed by Ryan Dahl, it essentially encapsulates the Chrome V8 engine.
Node optimizes some special use cases and provides alternative APIs to make V8 run better in non-browser environments. The V8 engine executes Javascript very quickly and has very good performance. Node is a platform built on the Chrome JavaScript runtime, which is used to easily build web applications with fast response speed and easy expansion. Node uses an event-driven, non-blocking I/O model to be lightweight and efficient, making it ideal for running data-intensive real-time applications on distributed devices. (Recommended learning: JavaScript video tutorial.)
Advantages of Node
Node, as an emerging front-end framework and back-end language, There are many attractive places:
RESTful API
Single-threaded
Node can still perform concurrent tasks without adding additional threads. Processing - Node.js is single-threaded. It implements concurrent operations through the event loop, and we should make full use of this - avoid blocking operations as much as possible, and instead use non-blocking operations.
Non-blocking IO
V8 virtual machine
Event-driven
Vue (pronounced /vjuː/, similar to view) Yes A progressive framework for building user interfaces. Unlike other large frameworks, Vue is designed to be applied layer by layer from the bottom up. Vue's core library only focuses on the view layer, which is not only easy to get started, but also easy to integrate with third-party libraries or existing projects. On the other hand, when combined with a modern tool chain and various supporting libraries, Vue is fully capable of providing drivers for complex single-page applications.
If you just want to simply use vue as an auxiliary plug-in for your front-end development, then you only need to directly