zepto中animate方法的使用注意

今天在用zepto的animate方法时,遇到回调函数不能执行的问题,最后发现在zepto中要想使回调函数在动画完成后执行,需要在回调函数前面加上动画类型这个参数才可以,具体写法如下:

$("div").animate({left:100},800,"linear",function(){

  alert(111);

})