jq animate 的第二写法

俩个参数的写法

 

例子:

$('#div1').animate({num:'auto'},{
  duration : 1000,   //运动时间
  easing : 'linear',    //运动形式
  complete : function(){},    //回调函数
  step : function(a,b){      //检测整个运动的过程
    $('#div1').html( parseInt(b.pos * 2389423) );
  }
});

posted @ 2017-03-15 16:04  zhengyan_web  阅读(154)  评论(0编辑  收藏  举报