日期:2014-05-17  浏览次数:20427 次

新学者求教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("删除成功"); }