Welcome to Jonic Developer Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
636 views
in Technique[技术] by (71.8m points)

better-scroll问题

点击tab切换,内容不同,这样写的滑动,为什么会保存第一次的位置,比如内容一滑到了底部,切换到内容二还是底部,怎么切换的时候返回顶部,下面代码写到了tab切换的click事件里
image.png


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

点击tab切换的时候重置一下滚动区域的scrollTop属性


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Jonic Developer Community for programmer and developer-Open, Learning and Share

548k questions

547k answers

4 comments

55.4k users

...