WHB1 / WHB1.github.io.old

blog
0 stars 0 forks source link

NodeJS #21

Open WHB1 opened 6 years ago

WHB1 commented 6 years ago

这里是NodeJs学习教程

WHB1 commented 6 years ago

nodejs 学习项目源代码

https://github.com/Wizzercn/NodeWk

WHB1 commented 6 years ago

npm模块安装机制

网址:
http://blog.csdn.net/gentlycare/article/details/51332882

https://www.cnblogs.com/penghuwan/p/6970543.html

http://www.imooc.com/article/4345

http://www.siguoya.name/pc/home/article/252

WHB1 commented 6 years ago

nodejs :Buffer与Stream比较

http://blog.csdn.net/u010958922/article/details/51477401

buffer 为数据缓冲对象,是一个类似数组结构的对象,可以通过指定开始写入的位置及写入的数据长度,往其中写入二进制数据 stream 是对buffer对象的高级封装,其操作的底层还是buffer对象,stream可以设置为可读、可写,或者即可读也可写,在nodejs中继承了EventEmitter接口,可以监听读入、写入的过程。具体实现有文件流,httpresponse等~~