如图:
$('.cancel').click(function(){
popout();
var kc = $(this).parents('.order').index();
$('.popbottom').find('span:last').click(function(e){
pophide();
console.log(kc);
$('.order:eq('+kc+')').remove();
})
});
因为你只要点击一次$('.cancel'),就重复给$('.popbottom').find('span:last')加点击事件