收藏
回答

编辑报错 Bad attr `animation` with message > 1 ?

 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 个回答

  • stop eating
    stop eating
    05-14
    animation="{{index==sDeleteselect?animationData1:''}}"   {}换成单引号就不报错了
    
    05-14
    有用 1
    回复 3
    • 赞
      05-14
      谢谢  为什么不可以赋值成空对象  请问
      05-14
      回复
    • stop eating
      stop eating
      05-14回复
      空对象你可以用null,语法问题,不用纠结
      05-14
      回复
    • 赞
      05-14回复stop eating
      好的  谢谢
      05-14
      回复
登录 后发表内容
问题标签