当前位置:网站首页>1-2 characteristics of nodejs
1-2 characteristics of nodejs
2022-04-23 16:58:00 【Endless cake】
NodeJS brief introduction
NodeJS The reason why we think it is a background programming language , Because of the following :
(1) Can be node Install on server
(2) Can be js Put the code on the server , adopt node To execute it. .
Put it another way . In fact, that is node Given js A function of modifying server-side code , So it's not so much node It's a background language , It's better to say js Is a full stack language , It can run in the browser , adopt node It can also run on the server , say js Is a full stack language , Not at all .
NodeJS Advantages and characteristics of being a backstage
(1) NodeJS A single thread
(2) be based on V8 Engine render : fast
(3) Asynchronous non blocking I/O operation
there I/O refer to INPUT and OUTPUT, Reading and writing files .
(4)event-driven Time driven :
JS Run in browser , It can be understood as a front-end development language .
The browser gives JS Provides many global properties and methods . Such as window
front end ( Browser running JS), It's a limitation I/O Operation of the .( Restrictions do not mean there is no )
for example Upload of files , Namely I/O operation . This is just a read , Instead of writing . So the front end is for
Protect customer privacy and customer security , It's a limitation I/O Operation of the .
JS Running on the server node in , It can be understood as a background development language .
node Also give JS Provides many built-in properties and methods . Such as http、url、path And so on api for js operation
node There is no limit in I/O Operation of the .
版权声明
本文为[Endless cake]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230554520328.html
边栏推荐
猜你喜欢
Selenium IDE and XPath installation of chrome plug-in
Shell脚本——Shell编程规范及变量
Bytevcharts visual chart library, I have everything you want
Path environment variable
VLAN advanced technology, VLAN aggregation, super VLAN, sub VLAN
The new MySQL table has a self increasing ID of 20 bits. The reason is
Zhongang Mining: Fluorite Flotation Process
Shell script -- shell programming specification and variables
STM32__03—初识定时器
TypeError: set_ figure_ params() got an unexpected keyword argument ‘figsize‘
随机推荐
Deeply understand the relevant knowledge of 3D model (modeling, material mapping, UV, normal), and the difference between displacement mapping, bump mapping and normal mapping
How does flash cache data in memory?
聊一聊浏览器缓存控制
VLAN advanced technology, VLAN aggregation, super VLAN, sub VLAN
◰GL-着色器处理程序封装
批量制造测试数据的思路,附源码
Pycham connects to the remote server and realizes remote debugging
拷贝构造函数 浅拷贝与深拷贝
昆腾全双工数字无线收发芯片KT1605/KT1606/KT1607/KT1608适用对讲机方案
_ Mold_ Board_
Mock test
ACL 2022 | DialogVED:用于对话回复生成的预训练隐变量编码-解码模型
MySQL restores data through binlog file
详解牛客----手套
深入了解3D模型相关知识(建模、材质贴图、UV、法线),置换贴图、凹凸贴图与法线贴图的区别
◰ GL shader handler encapsulation
Go language, array, string, slice
【解决报错】Error in v-on handler: “TypeError: Cannot read property ‘resetFields’ of undefined”
ACL 2022 | dialogved: a pre trained implicit variable encoding decoding model for dialogue reply generation
Path environment variable