当前位置:网站首页>1-1 NodeJS
1-1 NodeJS
2022-04-23 16:58:00 【Endless cake】
What is? Node?
First of all, we need to correct an idea ,node Not a background language . that node What is it? ?
node Is based on V8 engine ( That is, the engine of Google browser ) Rendering JS Tools or environments .
Use node The following preparation steps are required before :
1. install node
2. take JS Put the code in node In the implementation of
install node
Official website address :https://nodejs.org/zh-cn/
It is recommended that novices download the stable version
After a fool's installation , The computer automatically installed successfully npm(js Module management tool ).
be based on npm You can install and download js modular .
js Encapsulation means that all modules are good , A bag that can be directly retrieved or used by others .
How to be in node Rendering and parsing in js
The first pattern :
REPL Pattern (Read-Evaluate-print-Loop, Input - evaluation - Output - loop )
This mode is very similar to the browser console , It's just that this is implemented in node:
ctrl+c You can execute the end command
Second mode :
Based on the direct Node To execute js
(1) Execute directly through the command window :(DOS window & A terminal window )
Find the file directory , Directly through node xxx.js Can be executed directly js file
(2) Execute directly in the development tool ( I used it here Hbuilder).
版权声明
本文为[Endless cake]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230554520369.html
边栏推荐
猜你喜欢
vscode如何比较两个文件的异同
Kunteng full duplex digital wireless transceiver chip kt1605 / kt1606 / kt1607 / kt1608 is suitable for interphone scheme
loggie 源码分析 source file 模块主干分析
STM32__ 03 - beginner timer
Mock test
PyTorch:train模式与eval模式的那些坑
DanceNN:字节自研千亿级规模文件元数据存储系统概述
Quick install mongodb
Installing labellmg tutorial in Windows
How vscode compares the similarities and differences between two files
随机推荐
Generate random numbers with high quality and Gaussian distribution
Error in v-on handler: "typeerror: cannot read property 'resetfields' of undefined"
ACL 2022 | DialogVED:用于对话回复生成的预训练隐变量编码-解码模型
PyMySQL
DanceNN:字节自研千亿级规模文件元数据存储系统概述
Dlib of face recognition framework
Encapsulating the logging module
PHP efficiently reads large files and processes data
Tencent resolves the address according to the IP address
Derivation of Σ GL perspective projection matrix
Detailed explanation of information abstract, digital signature, digital certificate, symmetric encryption and asymmetric encryption
The new MySQL table has a self increasing ID of 20 bits. The reason is
Camtasia2022软件新增功能介绍
Smart doc + Torna generate interface document
Zhimeng dedecms security setup Guide
Node access to Alipay open platform sandbox to achieve payment function
websocket
ACL 2022 | dialogved: a pre trained implicit variable encoding decoding model for dialogue reply generation
Interface document yaml
Decimal format decimal / datetime conversion processing