Skip to content

Commit

Permalink
完善node
Browse files Browse the repository at this point in the history
  • Loading branch information
markormark committed May 13, 2019
1 parent 883996f commit d102395
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Javascript/js中的内存.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,12 @@ window.onload = function(){
//换句话说,buttom元素仍然在内存中而且不能被回收。
}
```
## NodeJS中的内存释放

`JavaScript` 中不同类型以及不同环境下变量的内存都是何时释放? 这个东西应该是面试比较经常会问到的。

- 引用类型: 在**没有引用之后**通过V8的GC自动回收
- 值类型:如果处于闭包情况下要等闭包没有引用了才会被`GC`回收,非闭包情况下等待V8的新生代切换的时候回收。

# 总结

Expand Down
2 changes: 1 addition & 1 deletion Node/Crypto.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Node.js Crypto模块
# Node.js Crypto模块(未完成)
crypto是Node.js 提供的加密模块,包括各种的可逆以及不可逆的加密
> crypto 模块提供了加密功能,包含对 OpenSSL 的哈希、HMAC、加密、解密、签名、以及验证功能的一整套封装。
Expand Down

0 comments on commit d102395

Please sign in to comment.