liazhimao

html

1  <dd><a href="javascript:void(0)" id="jumpa"></i>&nbsp;待办事项数:<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                 });   

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2021-11-12
  • 2021-06-22
  • 2021-05-09
猜你喜欢
  • 2021-09-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-08
  • 2022-01-08
相关资源
相似解决方案