JQuery 中 某个标签 remove 时添加特效方法

 

通过css中的fadeOut()方法,在fadeOut执行后,调用回调函数将该节点删除,代码如下:
 

$("#hello").fadeOut(200,function(){          //200 ms

  $(this).remove();
});
 
posted @ 2016-04-17 11:50  窗外是绿色的  阅读(491)  评论(0编辑  收藏  举报