run javascript at serverside

2019-07-18 03:26发布

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.

2条回答
Animai°情兽
2楼-- · 2019-07-18 03:42

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/

查看更多
甜甜的少女心
3楼-- · 2019-07-18 03:51

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

查看更多
登录 后发表回答