PostIT

[Javascript/Request] Get URI, Protocol, Host in Javacsript(자바스크립트) 본문

Script/JavaScript

[Javascript/Request] Get URI, Protocol, Host in Javacsript(자바스크립트)

shun10114 2017. 3. 8. 09:48

# URI, Protocol, HOST Javascript에서 값 가져오기.



  • window.location.protocol
    Return) http:

  • window.location.host
    Return) localhost:8080

  • window.location.pathname
    Return) /projectName/currentPath


Comments