forked from Tencent/puerts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ed3bba9
commit 343f99e
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# FAQ | ||
|
||
## 这文档描述的是UE、Unity通用问题,引擎专用问题分别看相应文档 | ||
|
||
* [unreal faq](doc/unreal/faq.md) | ||
* [unity faq](doc/unity/faq.md) | ||
|
||
## npm上所有包都可用么? | ||
|
||
js虚拟机一般不会独立存在,都会依托于某个环境,用于解决某些问题。比如nodejs是js虚拟机加上编写webserver需要用到库,浏览器js环境是js虚拟机加上dom操作的api。 | ||
|
||
如果一个js包仅用了es规范的内容,这些环境下都能跑,但如果用了该环境特有的东西,比如用了node特有的api,就不能直接在浏览器跑,反之亦然。 | ||
|
||
而puerts是另外一个js环境:js虚拟机+游戏引擎。它和nodejs,浏览器js环境是并列关系,nodejs和浏览器专用的包固然没法在puerts上使用,相反如果你用了puerts特有的api做成一个包提交到npm,同样也没法在nodejs或者浏览器上跑。 | ||
|