framework7 可以拉动右侧工具栏和点击当前item就可以出发事件的HTML结构
<li class="swipeout"> <div class="swipeout-content item-content"> <div class="item-inner"> <a href="#" onclick="alert('asdasd')"> <div> <div class="row"> {{name}} </div> <div class="row"> <div class="row-left">sex</div> <div class="row-right">{{sex}}</div> </div> <div class="row"> <div class="row-left">age</div> <div class="row-right">{{age}}</div> </div> </div> </a> </div> </div> <div class="swipeout-actions-right"> <a href="#" class="swipeout-delete" data-confirm="确定要取消此关注吗?" data-confirm-title="提示">取消关注</a> </div> </li>
积累小的知识,才能成就大的智慧,希望网上少一些复制多一些原创有用的答案