0
location.href
location.replace
document.URL
다른 유사한 질문에서 알 수 있듯이 가능한 모든 방법을 통합 할 수 있습니까?JavaScript : 동일한 창에서 새 페이지를 여는 방법
location.href
location.replace
document.URL
다른 유사한 질문에서 알 수 있듯이 가능한 모든 방법을 통합 할 수 있습니까?JavaScript : 동일한 창에서 새 페이지를 여는 방법
var customURL = 'http://www.example.com';
window.location.href = customURL;
window.location.assign(customURL);
// Current page won't get saved in the history:
window.location.replace(customURL);
// Gecko only:
window.document.location = customURL
은 참조 :
URL 재산 document.location.href DOM 레벨 0 대체합니다. 그러나 document.location.href는 설정 가능하며 document.URL은 설정되지 않습니다. –
@AshimSha 실제로, window.location –
그들이 말하는 것을 보시려면 여기를 클릭하십시오 - https://developer.mozilla.org/en/Document_Object_Model_%28DOM%29/document.URL –