<div class="codetitle"> <span><a style="CURSOR: pointer" data="51656" class="copybut" id="copybut51656" onclick="doCopy('code51656')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code51656"> <br>function clearCookie(){ <br>var keys=document.cookie.match(/[^ =;]+(?=\=)/g); <br>if (keys) { <br>for (var i = keys.length; i--;) <br>document.cookie=keys[i]+'=0;expires=' + new Date( 0).toUTCString() <br>} <br>} <br> </div>