编辑报错 Bad attr `animation` with message > 1 ?
发布于 7 年前 作者 iyi 5240 次浏览 来自 官方Issues

 Bad attr `animation` with message

> 1 | <view class=“menuPage”><view class=“top”><block wx:for="{{aMeua}}" wx:for-item=“item” wx:for-index=“index” wx:key=“index”><view class=“yMenu” animation="{{index==sDeleteselect?animationData1:{}}}" id="{{index==sDeleteselect?‘yselect’:‘no’}}" data-event-opts="{{[[‘tap’,[[‘animationDelete’,[’$0’,index],[[[‘aMeua’,’’,index,‘id’]]]]]]]}}" bindtap="__e"><view class=“yMenuitem”><image src="{{item.image}}"></image><text>{{item.title}}</text></view><view class=“icon”><block wx:if="{{item.title}}"><image src="…/…/static/menu/delete.png"></image></block></view></view></block></view><view class=“buttom”><block wx:for="{{aMeua1}}" wx:for-item=“item” wx:for-index=“index” wx:key=“index”><view class=“yAllmenu” animation="{{index==sSelect?animationData:{}}}" id="{{index==sSelect?‘select’:‘no’}}" data-event-opts="{{[[‘tap’,[[‘fanimation’,[’$0’,index],[[[‘aMeua1’,’’,index,‘id’]]]]]]]}}" bindtap="__e"><view class=“yMenuitem”><image src="{{item.image}}"></image><text>{{item.title}}</text></view><view class=“icon”><image src="…/…/static/menu/add.png"></image></view></view></block></view></view>

    |  

1 回复
animation="{{index==sDeleteselect?animationData1:''}}"   {}换成单引号就不报错了
回到顶部