动画API
发布于 5 年前 作者 pengjun 523 次浏览 来自 问答

var animation = wx.createAnimation({

duration: 500,

timingFunction: ‘ease’,

})

animation.top(’-1rpx’).step()

this.setData({

xxdh: animation.export()

})

这是源码。  为什么在开发者工具上能看出动画,在手机上点10次  大概只有1次触发了动画,其余的没有动画就直接显示出来了

2 回复

是安卓和 ios 都这样吗

IOS是这样,安卓没试

回到顶部