能帮我解释一下下面代码的意思吗?

发布于 6 年前作者 longjuan7524 次浏览最后编辑 6 年前来自 ask

这段代码看不懂

麻烦逐行解释一下,参数的意义。谢谢

const animation = wx.createAnimation({      duration: 1000,      timingFunction: 'ease',
    })    this.animation = animation

    animation.scale(2, 2).rotate(45).step()    this.setData({      animationData: animation.export()
    })

    setTimeout(function () {
      animation.translate(30).step()      this.setData({        animationData: animation.export()
      })
    }.bind(this), 1000)
0 回复
暂无回复