赞
踩
1.scroll-view标签上加上:scroll-into-view="'scan'+goindex"属性
- <scroll-view style="height: 100%;padding-bottom: 100rpx;" scroll-y @scrolltolower="onreachBottom"
- :scroll-top="scrollTop" :refresher-enabled="false" :refresher-triggered="triggered"
- :refresher-threshold="50" refresher-background="#f8f8f8" @refresherrefresh="onRefresh"
- :scroll-into-view="'scan'+goindex" @scroll="scrolling" @refresherrestore="onRestore"> 内容</scroll-view>
2.直接给goindex赋值(注意:goindex就是唯一值)定位到数据的唯一值
注意:scroll-into-view后面添加一个自定义的字符串再加上唯一值
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。