this.animate() 在absolute情况下无法正常运行?
发布于 4 年前 作者 yong73 6564 次浏览 来自 官方Issues

      this.animate('#d', [

      {top:0,left:0},

      {top:50,left:50},

      ], 1000, function () {

        console.log("end")//不会输出

    }.bind(this))



position: absolute;

  top:50rpx;

  left: 50rpx;

去掉top、left属性就动不了,不去掉的话动画始终是动到这个位置然后停住,不会调用结束的function。

回到顶部