JS는 현재 웹 애플리케이션의 컨텍스트 경로 구현 방법을 얻습니다.
// js webContextVar webroot = document.location.href; webroot = webroot.substring (webroot.indexof ( '//')+2, webroot.length); webroot = webroot.substring (webroot.indexof ( '/')+1, webroot.length); webroot = webroot.substring (0, webroot.indexof ( '/')); rootpath = "/"+webroot;
위의 기사 js는 현재 웹 응용 프로그램의 컨텍스트 경로 구현 방법을 얻는 것이 내가 공유 한 모든 컨텐츠입니다. 나는 당신이 당신에게 참조를 줄 수 있기를 바랍니다. 그리고 당신이 wulin.com을 더 지원할 수 있기를 바랍니다.