weixin_46005994
Bad_kid_
2021-01-22 22:36

为什么scriptengin类创建的对象会是空对象?

  • java
  • eclipse

ScriptEngineManager factory = new ScriptEngineManager(); 

ScriptEngine engine = factory.getEngineByName("JavaScript");

engine.eval("print('Hello, World')");

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

0条回答