<view>
<view class="detail-container"
style='background:url({detail.images.large}) no-repeat top/cover'></view>
<view class='detail-mask'></view>
<view class='detail-info'>
<image src='{{detail.images.large}}'
class='detail-img'></image>
<view class='detail'>
<view class='detail-nm'>{{detail.title}}</view>
<view>{{detail.original_title}}
</view>
<view class='detail.sc'>
{{detail.rating.average}}分</view>
</view>
<view>{{detail.countries[0]}}
/{{detail.durations[0]}}</view>
<view>导演: {{detail.directors[0].name</view>
</view>
</view>
<view class="desc">{{detail.summary}}</view>
</view>
VM9864:5 ./pages/comment/comment.wxml
end tag missing, near `view`
> 1 | <view>
| ^
2 | <view class="detail-container"
3 | style='background:url({detail.images.large}) no-repeat top/cover'></view>
4 | <view class='detail-mask'></view>
上面同学说的2、3是对的,1的话wxml中属性的值单双引号都可以。
你好,发现三处错误,供参考:
第一行,view class =''
第三行,{{detail.images.large}}) 是双大括号,你少了一对。
<view>导演: {{detail.directors[0].name}}</view>,你少了右边双大括号。