未捕获的类型错误:对象没有方法“stopImmediatePropagation”
这是我从 9lessons 网站获得的完整代码。
$(document).ready(function()
{
$(".delete").live('click',function()
{
var id = $(this).attr('id');
var b=$(this).parent().parent();
var dataString = 'id='+ id;
if(confirm("Sure you want to delete this update? There is NO undo!"))
{
$.ajax({
type: "POST",
url: "delete_ajax.php",
data: dataString,
cache: false,
success: function(e)
{
b.hide();
e.stopImmediatePropagation();
}
});
return false;
}
});
}
错误指向e.stopImmediatePropagation();
如何解决此错误?谢谢!