Observed since 20 Oct, 18:17 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
- node 主线是单线程的,进程中包含线程,一个进程中包含多个线程,node中一个进程只能包含一个线程,如果想开多个进程,node允许开子进程
##单线程和多线程
##同步和异步
##阻塞和非阻塞
##回调
##异步
文件读写 callback 定时器
能用异步不用同步
##事件环
##node全局对象
##js中的模块
##commonjs(提高了可维护性,有利于分工协作,高内聚低耦合)
require 是同步的 有回调函数 有返回值 一般都是异步的
使用某个模块中是变量,可以挂载在全局下,让所有模块来使用
npm i nrm -g
nrm ls
nrm add zf http://172.18.1.139
nrm use zf
npm install nodeppt -g
###http-server npm install http-server -g
启动服务 http-server -p 端口号
卸载 npm uninstall http-server -g
本地安装 初始化依赖文件(package.json) npm init -y
1.开发依赖 npm install gulp (--save-dev)或者-D
2.项目依赖 npm info jquery npm install jquery@版本号 (--save)或者-s
3.发布自己的包
发布 npm publish
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.0.0Registry latest | 19 Mar 2017 | 0 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 18:17 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:b09158ea8ac5e074327defd20db28bacaff6afeea0593c4a47cc877f7673527a