Micro letter applet: how to determine the number of array?

可以<view wx:if="{{list.length == 0}}"> </view>

Simple arithmetic can be performed in the {} {}, including ternary operator, logic, arithmetic

// by judging whether the array is 0, that is displayed. 
<View class = " {{historyFeedback_list.length == 0 'hidden_feedback_history':? ''}} " >

Guess you like

Origin www.cnblogs.com/xubao/p/12169335.html