读书人

jQuery-hide()跟remove()

发布时间: 2012-11-23 00:03:43 作者: rapoo

jQuery-hide()和remove()

<script>    for (var i = 0; i < 5; i++) {      $("<div>").appendTo(document.body);    }    $("div").click(function () {      $(this).hide(2000, function () {        $(this).remove();      });    });</script>

?

读书人网 >Web前端

热点推荐