Skip to content
Discussion options

You must be logged in to vote

Taro.getCurrentInstance().page

这个getCurrentInstance和animation有什么关系,里面没有动画属性呢,能把taro如何使用小程序最新的动画方法说的仔细一些吗

Taro.getCurrentInstance().page 就是返回小程序的 page 对象 ,Taro.getCurrentInstance().page?.animate 就等于 this.animate

可以参考这个人的写法
#11700

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ZakaryCode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q & A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #12881 on December 05, 2022 06:40.