Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我最近ScriptEntine在 java 中发现了 API,主要是因为阅读了 Nashorn 在 JDK8 中的信息。
ScriptEntine
因为您可以使用 Nashorn 在 Javascript 中执行 java 代码,所以我想知道使用脚本引擎将外部代码加载为 Javascript 是否比从外部 jar 加载类更有益。
两种选择的优缺点是什么?