jq点击 删除id=del,删除指定的祖先元素class="task" (‘#del’).on(‘click’, function(){(this).parents(‘.task’).remove(); });