本篇文章给大家分享的是有关微信小程序如何实现点击页面出现文字功能,小编觉得挺实用的,因此分享给大家学习,希望大家阅读完这篇文章后可以有所收获,话不多说,跟着小编一起来看看吧。

.wxml
<view class="index" bindtap="index">
</view>
<text class="text" wx:if="{{text_a}}">
{{text_a}}
</text>
<text class="text" wx:if="{{text_b}}">
{{text_b}}
</text>
<text class="text" wx:if="{{text_c}}">
{{text_c}}
</text>
<text class="text" wx:if="{{text_d}}">
{{text_d}}
</text>
<text class="text" wx:if="{{text_e}}">
{{text_e}}
</text>
<text class="text" wx:if="{{text_f}}">
{{text_f}}
</text>
<text class="text" wx:if="{{text_g}}">
{{text_g}}
</text>
<text class="text" wx:if="{{text_h}}">
{{text_h}}
</text>
<text class="text" wx:if="{{text_i}}">
{{text_i}}
</text>
<text class="text" wx:if="{{text_j}}">
{{text_j}}
</text>