WeChat Mini Programs list click question

click on WeChat Mini Programs list,

    <view class="song" wx:for="{{myRegList}}">
      <view class="songInfo">
        <view class="songName">{{item.name}}</view>
        <view class="songer">{{item.singer_names}}</view>
      </view>
      <view class="songBtn" bindtap="chooseSong" data-songid="{{item.song_no}}">
        <image src="../../image/b3.png" class="songBtnImg"></image>
        <view class="songBtnTxt">+ </view>
      </view>
    </view>

clipboard.png

how to change the text of the current button to "clicked" when you click the button chooseSong?

Apr.01,2021

you add a view tag, render with conditions, and control

with a value.
<view class='songBtnTxt' wx-if="{{item.is_add}}">+ </view>
<view class='songBtnTxt' wx-else></view>

<view class='songBtnTxt'>{{item.is_add?'':'+ '}}</view>
Menu