微信小程序 实现listview带字母滑动
微信小程序实现listview带字母滑动
wxml
{{group.id}} #
js
handlerAlphaTap(e){ varap=e.target.dataset.loc;//字母 this.setData({ locationTo:ap }); varlist=this.data.groups; this.offsetTop=(this.data.clientHeihgt-list.length*16)/2; }, handlerMove(e){ var_this=this; varlist=this.data.groups; varmoveY=e.touches[0].clientY; varrY=moveY-this.offsetTop; if(rY>=0){ varindex=Math.ceil((rY-16)/16); if(0<=index&&index感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!