参考javax.script.ScriptEngine中在Android或评估一个JavaScript EX pressionScriptEngine、script、javax、Android

2023-09-05 00:40:00 作者:荒凉一梦

是否有可能开发一个Android应用程序时引用javax.script.ScriptEngine中的图书馆吗? 如果不是反正是有可能的,以评估一个JavaScript EX pression android系统?

Is it possible to reference the javax.script.ScriptEngine library when developing an android application? If not is there anyway possible to evaluate a javascript expression in android?

推荐答案

javax.script.ScriptEngine中是不是Android的一个默认的一部分,但你可以很容易地坛子里了你需要的任何库(假设规模是合理的,我不知道),包括他们在您的项目中。

javax.script.ScriptEngine is not a default part of android, but you could easily jar up any libraries you need(assuming the size is reasonable, I'm not sure) and include them in your project.