微信小程序:如何判断数组中的条数?
可以<view wx:if="{{list.length == 0}}"> </view>
可以在 {{}} 内进行简单的运算,包括三元运算符、逻辑判断、算数运算
//通过判断数组是否为0,觉得是否显示。 <view class="{{historyFeedback_list.length == 0?'hidden_feedback_history':''}}">
可以<view wx:if="{{list.length == 0}}"> </view>
可以在 {{}} 内进行简单的运算,包括三元运算符、逻辑判断、算数运算
//通过判断数组是否为0,觉得是否显示。 <view class="{{historyFeedback_list.length == 0?'hidden_feedback_history':''}}">