$request = $.getJSON('test.php'); $request.done(process1);
$request.done(process2);
$request.always(process3); function process1() {
console.log('process1:');
}
function process2() {
console.log('process2');
}
function process3() {
console.log('process3');
} $promise = $.Deffered()