新学者求教jQuery post有关问题。

新学者求教jQuery post问题。。$(.delete).click(function () {if (confirm(您确实要删除该信息么?)) {v

新学者求教jQuery post问题。。

$('.delete').click(function () {
            if (confirm("您确实要删除该信息么?")) {
                var id = $(this).parents('tr:first').attr('id');
                gAjax.delete_teach(id, function (r) {
                    if (r == 1) { alert("删除成功"); }
                    else {
                        alert("删除失败");
                    }
                    $('#' + id).fadeOut(200, function () { $(this).remove(); });
                });
            }
            return false;

        });


这个代码如何用jQuery ajax - post() 方法实现?  jQuery jQuery?Ajax JavaScript
[解决办法]
引用:
$('.delete').click(function () {
            if (confirm("您确实要删除该信息么?")) {
                var id = $(this).parents('tr:first').attr('id');
                gAjax.delete_teach(id, function (r) {
                    if (r == 1) { alert("删除成功"); }


                    else {
                        alert("删除失败");
                    }
                    $('#' + id).fadeOut(200, function () { $(this).remove(); });
                });
            }
            return false;

        });



这个代码如何用jQuery ajax - post() 方法实现? 

里面换成这样
 $.post("asd.ashx", { id: id, dat: Math.random() }, function (r) {

            if (r == 1) { alert("删除成功"); }
            else {
                alert("删除失败");
            }
            $('#' + id).fadeOut(200, function () { $(this).remove(); });
        
         })
    

post到asd.ashx这个一般处理程序(其他的也可以)