<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>return escape(sStr).replace(/\+/g, '%2B').replace(/\"/g,'%22') <br>.replace(/\'/g, '%27').replace(/\//g,'%2F'); <br>} <br> </div>