run javascript at serverside

青春壹個敷衍的年華 提交于 2019-12-24 02:13:06

问题


Is there any way to run one same instance of JavaCcript(jQuery) on the server side and call it from a Java method? :)

I am interested to know whether it is possible to run it on the server side (not clientside), like Google app engine.


回答1:


Rhino. Apparently it supports a few javascript libraries, including jquery. http://ejohn.org/blog/bringing-the-browser-to-the-server/




回答2:


Jaxer by Aptana is the first Ajax server. It has a javascript capability for the server-side. Whether it does what you need is for you to decide.

http://jaxer.org/



来源:https://stackoverflow.com/questions/2340085/run-javascript-at-serverside

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