请教for循环animation的问题
发布于 7 年前 作者 yang47 11433 次浏览 来自 问答

请教,我想通过for循环,把animation分别绑定到对象上,该怎做?

目前我按如下方法尝试,但似乎没有效果

<view class=‘replyPieceAll’ wx:for=’{{arr_replyL}}’ animation="{{arr_an}}"  style=‘transform:rotate({{arr_replyL[index].angle}}deg); transform-origin:{{needLeft}}rpx 20rpx;’>

this.data.arr_an[0].opacity(0).step();

this.setData(

{

    arr_an: this.doAn(),

}

doAn:function ()

{

    this.data.arr_an[0].opacity(0).step().export();

    return this.data.arr_an

}

回到顶部