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]);
}
});
}
$.ajax({
url:"Comment.aspx?action=ajax_getcomment&id="+$ID+"&page="+$Page+"&time"+new Date().toString(),
type:'GET',
success:function(){
$('#comment').html(arguments[0]);
}
});
}
看JQuery的源码中有用到。个人理解,没有验证。
arguments[0] 第一个参数值!
比哪这个调用
fun("str","str2");
arguments[0]就表示"str"