Home >Web Front-end >JS Tutorial >js simple sample code to get the current path_javascript skills
request.getRequestURI();
request.getRequestURL();
request.getQueryString();
request.getServletPath()
可以得到自己的网络地址:request.getScheme() "://" request.getServerName() ":" request.getServerPort() request.getRequestURI()