<body>
    <div id="number"></div>
</body>
<script type="text/javascript"> function magic_number(count) { var num = $('#number'),start = 0; num.animate({count: count}, { duration: 1500, step: function() { if(start <= count){ num.text(parseInt(start++)); }; } }); }; magic_number(100); </script>

 

posted on 2018-05-15 17:56  hmyCheryl  阅读(746)  评论(0编辑  收藏  举报