function FunAjax() { $.ajax({ type: "POST", url: "jQueryAjaxTest.ashx", data: "begin=1&end=9", beforeSend: function(){ $("#span_content").text("数据处理中..."); }, success: function(msg){ $("#span_content").text("两个数的和为: " + msg); } }); }http://www.cnblogs.com/bynet/archive/2010/06/09/1754984.html