<view wx:key=“bExp” class=‘inBox’ style=“background-color:blue” wx:for="{{item}}" wx:for-item=“p” >
<block wx:if="{{p.flag}}">
噼噼啪啪铺铺{{p.eleName}}
<block wx:if="{{p.controlType == ‘文本框’}}">
<view class=‘inputLable’>{{p.eleName}}:</view>
</block>
</block>
</view>
第一个p.eleName能获取到 ,第2个p.eleName 获取不到
<view wx:key="bExp" class='inBox' style="background-color:blue" wx:for="{{item}}" wx:for-item="p" >
<block wx:if="{{p.flag}}">
噼噼啪啪铺铺{{p.eleName}}
<block wx:if="{{p.controlType === '文本框'}}">
<view class='inputLable'>{{p.eleName}}:</view>
</block>
</block>
</view>
文字能显示 第一个{{p.eleName}} 获取不到,如果把wx:if="{{p.flag}}"改成wx:if="{{ture}}" 就能获取到了 咋回事?