Home  >  Article  >  Web Front-end  >  js simple sample code to get the current path_javascript skills

js simple sample code to get the current path_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:04:561090browse

request.getRequestURI();
request.getRequestURL();
request.getQueryString();

request.getServletPath()

可以得到自己的网络地址:request.getScheme() "://" request.getServerName() ":" request.getServerPort() request.getRequestURI()

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn