Rhino中的XMLHttpRequest? [英] XMLHttpRequest in Rhino?

查看:227
本文介绍了Rhino中的XMLHttpRequest?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我一直在玩Java的ScriptEngine API,即javascript引擎,它使用Rhino来处理所有事情。我总结了Rhino没有XMLHttpRequest的事实。我想知道是否有人知道可能的方法吗?

Lately I have been playing around with Java's ScriptEngine API, namely the javascript engine, which uses Rhino for everything.. I sumbled upon the fact that Rhino has no XMLHttpRequest. I was wondering if anyone knew of a possible way around this?

推荐答案

您几乎需要在Java中定义XMLHttpRequest。它已经完成 - 检查这个

You practically need to define XMLHttpRequest in Java. And it is already done - check this out.

这篇关于Rhino中的XMLHttpRequest?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆