当前位置:网站首页>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
边栏推荐
- [pimf] openharmony paper Club - what is the experience of wandering in ACM survey
- ByteVCharts可视化图表库,你想要的我都有
- PyTorch:train模式与eval模式的那些坑
- [problem solving] [show2012] random tree
- 信息摘要、数字签名、数字证书、对称加密与非对称加密详解
- Nodejs reads the local JSON file through require. Unexpected token / in JSON at position appears
- _ Mold_ Board_
- VLAN advanced technology, VLAN aggregation, super VLAN, sub VLAN
- Production environment——
- Detailed explanation of file operation (2)
猜你喜欢

自定义my_strcpy与库strcpy【模拟实现字符串相关函数】

Detailed explanation of information abstract, digital signature, digital certificate, symmetric encryption and asymmetric encryption

Mock test using postman

Deepinv20 installation MariaDB

Pycham connects to the remote server and realizes remote debugging

Milvus 2.0 détails du système d'assurance de la qualité

Nacos + aspnetcore + Ocelot actual combat code

Detailed explanation of Milvus 2.0 quality assurance system

如何建立 TikTok用户信任并拉动粉丝增长

批量制造测试数据的思路,附源码
随机推荐
Installation and management procedures
MySQL master-slave replication
Kunteng full duplex digital wireless transceiver chip kt1605 / kt1606 / kt1607 / kt1608 is suitable for interphone scheme
websocket
博士申请 | 厦门大学信息学院郭诗辉老师团队招收全奖博士/博后/实习生
Idea of batch manufacturing test data, with source code
CentOS MySQL multi instance deployment
JSON deserialize anonymous array / object
org. apache. parquet. schema. InvalidSchemaException: A group type can not be empty. Parquet does not su
Modify the test case name generated by DDT
聊一聊浏览器缓存控制
PyMySQL
How to choose the wireless gooseneck anchor microphone and handheld microphone scheme
English | day15, 16 x sentence true research daily sentence (clause disconnection, modification)
◰ GL shader handler encapsulation
MySQL personal learning summary
How much do you know about the process of the interview
Calculate pie chart percentage
【题解】[SHOI2012] 随机树
Pytorch: the pit between train mode and eval mode