I have two servers installed on my machine, Tomcat and Virgo, (an OSGi webserver) that run on different ports. I need a website deployed on Tomcat to link to another website deployed on the other server (which is not mapped to any address), how can I do this? Resolving client side the ip address of the server? What is the correct approach? Thanks.
Requirement is: The user browsing one app will need to be able to click on a link to the other app.
来自@Martin:
var url='//'+document.domain+':8080/otherapp/';
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.