<div class="codetitle"> <span><a style="CURSOR: pointer" data="41608" class="copybut" id="copybut41608" onclick="doCopy('code41608')"><u>複製程式碼</u></a></span> 程式碼如下:</div> <div class="codebody" id="code41608"> <br>function URLencode(sStr) <br>{ <br>{ <br>{ sStr).replace(/ /g, '+').replace(/"/g,'"') <br>.replace(/'/g, ''').replace(///g,'/ '); <br>} </div>