html
1 <dd><a href="javascript:void(0)" id="jumpa"></i> 待辦事項數:<span id="number"style="color:red;font-size: 12px;font-weight: bold;"></span></a></dd>
js
1 var value=data.data; 2 var num = $("#number"); 3 num.animate({count: value}, { 4 duration: 3000, //持續時間 5 step: function() { 6 num.text(Math.round(this.count)); 7 } 8 });