public static String ExcuteJs(String paras) throws scriptException,
FileNotFoundException, NoSuchMethodException
{
scriptEngine engine = engineManager.getEngineByName("Javascript"); //得到脚本引擎
engine.eval(new java.io.FileReader("data/test.js"));
Invocable inv = (Invocable)engine;
Object a = inv.invokeFunction("test", paras );
CheckMethods.PrintDebugMessage(a.toString());
return a.toString();
以上就是本篇文章【宁波网站优化公司/百度一下1688】的全部内容了,欢迎阅览 ! 文章地址:http://ww.kub2b.com/news/15577.html
栏目首页
相关文章
动态
同类文章
热门文章
网站地图
返回首页 企库往资讯移动站 http://ww.kub2b.com/mobile/ , 查看更多