如何使用Java调用Rhino Javascript解释器?

发布于 2024-08-23 00:10:11 字数 90 浏览 5 评论 0原文

有没有使用java方法调用rhino-javascript函数并将其返回给java的例子?我找到的 rhino 的唯一示例是仅在 rhino shell 上键入命令。

is there any example on using java method to call rhino-javascript function and return it back to java? The only example i found for rhino is only typing command on the rhino shell.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

苦行僧 2024-08-30 00:10:11

当然,这是Rhino 嵌入教程。我过去曾这样做过,效果非常好。您需要向下滚动到此部分

Sure, here's the Rhino embedding tutorial. I've done this in the past and it works very well. You'll want to scroll down to this section.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文