$('#cherub_sub1_plus').one("click",function(event){
event.preventDefault();
$(this).addClass("cross");
$(this).attr("src","new_image.png");
});
$('.cross').on("click",function(){
// nothing will execute here because I've changed the src
});
这很奇怪。每当您更改图像的 src 时,所有事件处理程序也会被删除。