<div class="codetitle"> <span><a style="CURSOR: pointer" data="41785" class="copybut" id="copybut41785" onclick="doCopy('code41785')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code41785"> <br><script src="../js/jquery-1.4.2.js" type="text/javascript"></script> <br><script type="text/javascript"> <BR>function chlink() { <BR>var url = "../handler/userfirend.ashx"; <BR>$.get(url, function(data) { <BR>var data1 = data.toString(); <BR>$("#sp1").html(data + new Date()); <BR>}) <BR>} <BR>$(function() { <BR>timeID = setInterval('chlink()', 1000); //注意:执行的函数需要加引号,否则会报错的 <BR>}); <BR></script> <br> </div>