wx:for使用的问题,渲染不出?

小程序 文章 2022-01-26 16:00 650 0 全屏看文

AI助手支持GPT4.0

wx:for使用的问题,渲染不出?The problem of using wx:for, can't be rendered?

wx:for使用的问题,渲染不出?




使用wx:for渲染一直不成功,不知道什么原因,请各位老师指点,感谢!!!!

<block wx:for="{{coercive}}" wx:key="key">                    <!-- idx:"",name:"",model:"",unit:"",quantity:"",remark: -->                    <view class="section__title">编号:{{item.idx}}</view>                    <view class="section__title">标称名称/场所:{{item.name}}</view>                    <view class="section__title">规格(型号)/场所地址:{{item.model}}</view>                    <view class="section__title">单位:{{item.unit}}</view>                    <view class="section__title">数量:{{item.quantity}}</view>                    <view class="section__title">备注:{{item.remark}}</view>                </block>


coercive数组的内容如下:coercive: Array(2)0: {idx""name""model"阿斯蒂芬"unit"阿斯蒂芬斯蒂芬"quantity"阿斯蒂芬", …}1: {name"撒旦法"model"撒旦法"unit"撒旦法"quantity"撒旦法"remark"", …}



Using Wx: for rendering has been unsuccessful. I don't know why. Please give me some advice. Thank you< block wx:for="{{coercive}}" wx:key="key">