小程序中的屬性設(shè)置
真vertical="true"
假 vertical="{{false}}"
不要直接寫 vertical="false"日月,其計算結(jié)果是一個字符串幽告,轉(zhuǎn)成 boolean 類型后代表真值。
標簽的顯示與隱藏
隱藏
<text wx:if="{{false}}" class="post-date">{{date}}</text>
顯示
<text wx:if="true" class="post-date">{{date}}</text>
wx:if