//错误异常捕捉 var a = $.post("example.do", function() {alert("success");}).error(function() { alert("error"); });