小程序组件的 animation 只能触发一次动画么?
当用户点击view时,触发动画,只能执行一次动画而已么?再点无效
methods = {
onRobot () {
console.log('onRobot')
let bodyAnimation = wx.createAnimation({
duration: 300,
timingFunction: 'ease'
})
bodyAnimation.rotateZ(-35).step()
bodyAnimation.rotateZ(35).step()
bodyAnimation.rotateZ(0).step()
this.bodyAnimation = bodyAnimation.export()
}
}