JSP or JavaScript equivalent to PHP's $_SERVER[“HTTP_HOST”]?

前端 未结 4 1306
执念已碎
执念已碎 2021-01-02 22:22

I\'ve go an absolute URL in my JavaScript that I have hard coded for window.location.

I don\'t want to have to change this every time I am testing my app. In PHP I w

4条回答
提交回复
热议问题