$.ajax({
type:"get",
url:"/test/api/?u="+u,
dataType:"json",
data:"",
success:function result(data){
$("#show").html(data);
$("#show").show();
}
});
i don't understand the above code well, especially the success part. i don't know what will be passed to the parameter data. expect someone can explain it to me. thank you.
$.ajaxmethod? api.jquery.com/jQuery.ajax