I can’t eat hot tofu in a hurry! Although nodejs uses the syntax of js, it also has its own programming method. If you want to do it well, you need to put in some effort. express is a framework of nodejs, similar to the relationship between jQuery and js. Suggestion: Read the nodejs documentation in detail first, clarify the usage rules of nodejs, and then study express will be much easier.
Let me talk to you from the perspective of PHP:
nodejs is equivalent to PHP
express is equivalent to thinkphp, Laravel
Quickly develop web projects. If you understand the backend, it is relatively easy to get started!
A simple NODE example is also an official example:
It’s because it’s troublesome to parse routes and parameters, so we have express
I can’t eat hot tofu in a hurry! Although nodejs uses the syntax of js, it also has its own programming method. If you want to do it well, you need to put in some effort. express is a framework of nodejs, similar to the relationship between jQuery and js.
Suggestion: Read the nodejs documentation in detail first, clarify the usage rules of nodejs, and then study express will be much easier.