当前位置:网站首页>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
边栏推荐
- Shell脚本——Shell编程规范及变量
- Project framework of robot framework
- PHP高效读大文件处理数据
- Lock lock
- [pimf] openharmony paper Club - what is the experience of wandering in ACM survey
- Camtasia2022软件新增功能介绍
- VLAN advanced technology, VLAN aggregation, super VLAN, sub VLAN
- How much do you know about the process of the interview
- PyMySQL
- Deepinv20 installation MariaDB
猜你喜欢
Idea of batch manufacturing test data, with source code
DDT + Excel for interface test
Node access to Alipay open platform sandbox to achieve payment function
feign报400处理
Mock test
Smart doc + Torna generate interface document
Mock test using postman
Modify the test case name generated by DDT
扫码登录的原理你真的了解吗?
自定义my_strcpy与库strcpy【模拟实现字符串相关函数】
随机推荐
Detailed explanation of Milvus 2.0 quality assurance system
About stream flow, write it down briefly------
◰ GL shader handler encapsulation
Variable length parameter__ VA_ ARGS__ Macro definitions for and logging
Quick install mongodb
SQL database
JSON deserialize anonymous array / object
Use case execution of robot framework
英语 | Day15、16 x 句句真研每日一句(从句断开、修饰)
Idea of batch manufacturing test data, with source code
Construction of promtail + Loki + grafana log monitoring system
Path environment variable
[problem solving] [show2012] random tree
STM32__03—初识定时器
拷贝构造函数 浅拷贝与深拷贝
RTKLIB 2.4.3源码笔记
Calculation formula related to tolerance analysis
loggie 源码分析 source file 模块主干分析
Introduction to new functions of camtasia2022 software
手写事件发布订阅框架