问题
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?
回答1:
You practically need to define XMLHttpRequest in Java. And it is already done - check this out.
来源:https://stackoverflow.com/questions/13985560/xmlhttprequest-in-rhino