XMLHttpRequest in Rhino?

泪湿孤枕 提交于 2019-11-27 07:43:55

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!