首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

jQuery-hide()跟remove()

2012-11-23 
jQuery-hide()和remove()scriptfor (var i 0 i 5 i++) {$(div).appendTo(document.body)}$(

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>

?

热点排行