이 기사의 내용은 매우 간단합니다. 현재 정보를 얻기 위해 JavaScript에 대한 몇 가지 일반적인 명령을 요약하겠습니다.
console.info ( "document.url =" + document.url);
console.info ( "document.location.href =" + document.location.href);
//console.info("document.base= " + document.base); // 이것은 틀렸다!
console.info ( "document.location =" + document.location);
console.info ( "self.location.href =" + self.location.href);
console.info ( "top.location.href =" + top.location.href);
console.info ( "location.hostname =" + location.hostname);
console.info ( "window.location.host =" + window.location.host);
console.info ( "window.location.pathname =" + window.location.pathname);
그게 내가 한동안 기억하는 전부입니다. 나중에 업데이트하겠습니다^_^