应该
$(this)怎么办 如果在该函数之外有对它的引用,则可以将其存储到变量中。
$('#somelink').click(function() { var $t = $(this); $.ajax( ... , function() { $t.parent().remove(); });}
应该
$(this)怎么办 如果在该函数之外有对它的引用,则可以将其存储到变量中。
$('#somelink').click(function() { var $t = $(this); $.ajax( ... , function() { $t.parent().remove(); });}