Skip to content

Commit

Permalink
文档内容调整
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed May 28, 2021
1 parent db68c36 commit 9c043c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

## npm上所有包都可用么?

js虚拟机一般不会独立存在,都会依托于某个环境,用于解决某些问题。比如nodejs是js虚拟机加上编写webserver需要用到库,浏览器js环境是js虚拟机加上dom操作的api。
js虚拟机一般不会独立存在,都会依托于某个环境,用于解决特定问题。比如nodejs是js虚拟机加上编写webserver需要用到的api,浏览器js环境是js虚拟机加上dom操作的api。

如果一个js包仅用了es规范的内容,这些环境下都能跑,但如果用了该环境特有的东西,比如用了node特有的api,就不能直接在浏览器跑,反之亦然。

Expand Down

0 comments on commit 9c043c2

Please sign in to comment.