1、src中
<image class=”audio” catchtap=’onMusicTap’ src=”{
{isPlayingMusic? ‘/images/music/music-stop.png’: ‘/images/music/music-start.png’}}”></image>
2、if-else
<image catchtap=’onCollectiontap’ wx:if=”{
{collected}}” src=’/images/icon/collection.png’></image>
<image catchtap=’onCollectiontap’ wx:else src=’/images/icon/collection-anti.png’></image>
版权声明:本文为qq_42543264原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。