通过css中的fadeOut()方法,在fadeOut执行后,调用回调函数将该节点删除,代码如下:
$("#hello").fadeOut(200,function(){ //200 ms
$(this).remove();
});
$("#hello").fadeOut(200,function(){ //200 ms
转载于:https://www.cnblogs.com/maxiaoshuai/p/5400660.html