<script src="../js/jquery-1.4.2.js" type="text/javascript"></script>
<script type="text/javascript">
function chlink() {
var url = "../handler/userfirend.ashx";
$.get(url, function(data) {
var data1 = data.toString();
$("#sp1").html(data + new Date());
})
}
$(function() {
timeID = setInterval('chlink()', 1000); //注意:执行的函数需要加引号,否则会报错的
});
</script>