JQuery url1 JQuery 현재 URL, 경로 가져오는 방법 javascript window.location.host #returns host window.location.hostname #returns hostname window.location.pathname #return pathname window.location.href #returns full current url window.location.port #returns the port window.location.protocol #returns the protocol jQuery $(location).attr('host'); #returns host $(location).attr('hostname'); #returns hostname $(location).attr('pathname'); #returns .. 2020. 6. 20. 이전 1 다음