function test(){
$.ajax({
type: "POST",
url:"/ajax/test/",
data: { ...]
dataType: "json",
success: function(data){
return true;
}
});
}
}
function test(){
return $.ajax({
type: "POST",
url:"/ajax/test/",
data: { ...]
dataType: "json",
success: function(data){
return true;
}
});
}
}