wx.if里面不能加()么
<view wx:for-items="{{tempFilePaths}}" wx:key=“unique” class=“image_preview left”>
<block wx:if="{{item.indexOf(’.mp4’) > -1}}"> //判断为视频
<video src="{{item}}" data-src="{{item}}" />
</block>
<block wx:else> //判断为视频
<image src="{{item}}" data-src="{{item}}" mode=“aspectFill” bindtap=“previewUploadImage” />
</block>
</view>
报错说 wx.if里面的括号不合法,那应该怎么写 :)))