调试小程序出的问题unexpected character `1` 这段?
</view>
<scroll-view class="nav1" id="tab" scrollLeft="{{navScrollLeft}}" scrollWithAnimation="{{true}}" scrollX="true">
<view bindtap="switchLimitNav" class="nav-item1 {{currentLTab==item.id?'active':''}}" data-current1="{{idx}}" data-id="{{item.id}}" wx:for="{{limitNav}}" wx:for-index="idx" wx:key="id">
<view>{{item.title}}</view>
<view style="font-size:22rpx;color:#8a8c8e;padding-bottom:10rpx;">
<sapn wx:if="{{item.status==0}}">即将开抢</sapn>
求达人解决
2 回复
class="nav-item1 {{currentLTab==item.id?'active':'}}"
这里我去掉了一个'这个问题解决了
class="nav-item1 {{currentLTab==item.id?'active':'}}"
现在就是图片无法下载到手机相册的问题
<scroll-view class="nav1" id="tab" scrollLeft="{{navScrollLeft}}" scrollWithAnimation="{{true}}" scrollX="true">
<view bindtap="switchLimitNav" class="nav-item1 {{currentLTab==item.id?'active':''}}" data-current1="{{idx}}" data-id="{{item.id}}" wx:for="{{limitNav}}" wx:for-index="idx" wx:key="id">
<view>{{item.title}}</view>
</view>
</scroll-view>
测试没提示错误。