프로그래밍JAVASCRIPT
컨텍스트 패스 가져오기 함수
- 작성자
- 고성훈
- 등록일
- 2021-07-20 02:18
function getContextPath() {
var hostIndex = location.href.indexOf( location.host ) + location.host.length;
return location.href.substring( hostIndex, location.href.indexOf('/', hostIndex + 1) );
};