-
Notifications
You must be signed in to change notification settings - Fork 0
node_timers
2012 edited this page Jul 20, 2020
·
2 revisions
模拟与浏览器等同功能的定时器(setTimeout/setInterval)
预习概念
node vs browser
- setTimeout 函数里的 this 意义不同,浏览器指代全局变量 window,node 指代 Timeout 对象
- timer 参数不接受字符串,若为字符串,则抛错;
- hasRef
- ref
- refresh
- unref
- hasRef
- ref
- unref
对于 clearImmediate / clearTimeout / clearInterval 是可以混用的,都达到取消的功能
JS
CSS
- float
- BFC
- position
- flex
- grid
DOM
- DOM
- how browser works
Node.js
react
- 生命周期
- setState
- hook
git
- git 基础命令
- git rebase 理解
- git bisect
- git commit
- git hook
设计模式
- 策略模式
- ...
TCP/IP 协议
- HTTP/1.x
- HTTP/2
- SSL/TLS
- TCP
- DNS
- HTTP Cache
- CORS
- http status code
linux(shell)知识点