function GetComment($ID,$Page){
$.ajax({
url:"Comment.aspx?action=ajax_getcomment&id="+$ID+"&page="+$Page+"&time"+new Date().toString(),
type:'GET',
success:function(){
$('#comment').html(arguments[0]);
}
});
}

解决方案 »

  1.   

    可以,只是为了方便,比如这样也可以:function callback(){
    $('#comment').html(arguments[0]);
    }
    function GetComment($ID,$Page){
        $.ajax({
            url:"Comment.aspx?action=ajax_getcomment&id="+$ID+"&page="+$Page+"&time"+new Date().toString(),
            type:'GET',
            success:callback
        });
    }
      

  2.   

    应该可以用实名函数的
    function GetComment($ID,$Page){
        $.ajax({
            url:"Comment.aspx?action=ajax_getcomment&id="+$ID+"&page="+$Page+"&time"+new Date().toString(),
            type:'GET',
            success:receiveData
        });
    }
    function receiveData(data){
          $('#comment').html(data);
    }