<div class="codetitle"> <span><a style="CURSOR: pointer" data="72739" class="copybut" id="copybut72739" onclick="doCopy('code72739')"><u>코드 복사</u></a></span> 코드는 다음과 같습니다.</div> <div class="codebody" id="code72739"> <br><script 언어="JavaScript" type="text /javascript" > <br>var pos, str, para, parastr, tempstr1; <br>tempstr = ""; <br>str = window.location.href; <br>pos = str.indexOf("?" )parastr = str.substring(pos 1); <br>document.write("<br>파일 경로:" str) <br>if (pos > 0) <br>{ <br>document.write ("< ;br>모든 매개변수: " parastr) <br>} <br><br>else <br>{ <br>document.write("매개변수 없음"); ><br>if (str.indexOf("&") > 0) <br>{ <br>para = parastr.split("&") <br>for (i = 0; i < para. length; i ) <br>{ <br> tempstr1 = para[i]; <br><br> pos = tempstr1.indexOf("=") <br> //document.write(tempstr1.substring(0, pos)) ; <br> document.write("<br>Parameter" i ":" tempstr1.substring(0, pos)) <br> document.write("equal to:" tempstr1.substring(pos 1 )); <br>} <br>} <br></script></div>