实现小程序一个类似多选列表删除的功能
<!-- 错题本 -->
<!-- 错题本 -->
<view class="contarner">
<view class="content">
<view class="title flex-def flex-cCenter flex-zBetween">
<view>错题本(<text>{
{
list.length}}</text>)题</view>
<view class="editBtn" bindtap="showSelIcon">{
{
iconStatu?'取消':'编辑'}}</view>
</view>
<view class="{
{
iconStatu?'margin-b':''}}">
<view bindtap="toggleSel" class="item flex-def flex-cCenter flex-zBetween" wx:for="{
{
list}}" wx:key="{
{
index}}" data-id='{
{
item.id}}'>
<view class="flex-def flex-cCenter flex-zBetween" data-id='{
{
item.id}}'>
<icon wx:if="{
{
iconStatu}}" type="success" size="20" color="{
{
item.selStatu?'#0f0':'#999'}}" data-id='{
{
item.id}}' />
<view data-id='{
{
item.id}}'>
<text data-id='{
{
item.id}}'>{
{
item.letter}}-</text>
<text data-id='{
{
item.id}}'>正确:{
{
item.nickname}}</text>
</view>
</view>
<view data-id='{
{
item.id}}'>
<text class="wrongCount" data-id='{
{
item.id}}'>23</text>
<text class="wrongText" data-id='{
{
item.id}}'>错误次数</text>
</view>
</view>
&