首页 > TAG信息列表 > scriptContent
Java执行JavaScript脚本
demo //注入函数 StringBuilder scriptContent = new StringBuilder(); scriptContent.append("function run(){"); scriptContent.append("return 123"); scriptContent.append("}"); ScriptEngineManager factory = new ScriptEngineManager();