问题
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