当前位置:网站首页>In wechat applet, after jumping from one page to another, I found that the page scrolled synchronously after returning
In wechat applet, after jumping from one page to another, I found that the page scrolled synchronously after returning
2022-07-05 10:19:00 【huxiaoxiao.】
Problem description :
There is a recent project bug, Introduced another component in one component , Suppose the names of these two components are A and B
I am here A Click at the top of the page to jump to B page , stay B Page scrolls to bottom , Select a value to return automatically A( Or click the back button at the top to return to A), It's time to find out A Also scroll to the bottom .
resolvent :
1. Not recommended , Recommend to use 2
Through the components of prestige applet scroll-view, Set fixed height , Through scroll-view Medium bindscroll Method , Get the distance from the top when scrolling , And save the assignment . Call wx.pageScrollTo, Among them scrollTop It's the value you recorded , That's it
2.
Similar to the first method , But it's simpler , It's also the use of scroll-view, Take you whole A Of Scrollable area Wrap it up , Note that Scrollable area , The problem is solved when the height is fixed
One more word here , Generally, the normal return key is provided by the applet , Normal return will not have this problem , For reference only !
边栏推荐
- isEmpty 和 isBlank 的用法区别
- Atcoder beginer contest 254 "e BFS" f st table maintenance differential array GCD "
- Fluent generates icon prompt logo widget
- C#函数返回多个值方法
- Uni app running to wechat development tool cannot Preview
- @JsonAdapter注解使用
- 天龙八部TLBB系列 - 单体技能群伤
- Today in history: the first e-book came out; The inventor of magnetic stripe card was born; The pioneer of handheld computer was born
- Implementation of smart home project
- RMS to EAP is simply implemented through mqtt
猜你喜欢
随机推荐
【 conseils 】 obtenir les valeurs des axes X et y de la fonction cdfplot dans MATLAB
Interview: is bitmap pixel memory allocated in heap memory or native
天龙八部TLBB系列 - 关于技能冷却和攻击范围数量的问题
MySQL数字类型学习笔记
Implementation of smart home project
> Could not create task ‘:app:MyTest.main()‘. > SourceSet with name ‘main‘ not found.问题修复
Cerebral cortex: directed brain connection recognition widespread functional network abnormalities in Parkinson's disease
@Jsonadapter annotation usage
学习笔记5--高精地图解决方案
Constrained layout flow
pytorch输出tensor张量时有省略号的解决方案(将tensor完整输出)
[system design] index monitoring and alarm system
Coffeescript Chinese character to pinyin code
How to plan the career of a programmer?
Glide conclusion
Click the picture in the mobile browser and the picture will not pop up
Today in history: the first e-book came out; The inventor of magnetic stripe card was born; The pioneer of handheld computer was born
How can PostgreSQL CDC set a separate incremental mode, debezium snapshot. mo
The horizontally scrolling recycleview displays five and a half on one screen, lower than the average distribution of five
Personal website construction tutorial | local website environment construction | website production tutorial









