【发布时间】:2010-04-15 08:38:28
【问题描述】:
似乎我无法在 jquery ajax 成功函数中访问 $(this)。请看下面的代码。
$.ajax({
type: 'post',
url: '<?php echo site_url('user/accept_deny_friendship_request')?>',
data: 'action='+$action+'&user_id='+$user_id,
success: function(response){
//cannot access $(this) here $(this).parent().remove();
}
});
【问题讨论】: