当前位置:网站首页>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 !
边栏推荐
- Cerebral Cortex:有向脑连接识别帕金森病中广泛存在的功能网络异常
- TypeError: Cannot read properties of undefined (reading ‘cancelToken‘)
- Constrained layout flow
- C function returns multiple value methods
- 【JS】数组降维
- What is the origin of the domain knowledge network that drives the new idea of manufacturing industry upgrading?
- A large number of virtual anchors in station B were collectively forced to refund: revenue evaporated, but they still owe station B; Jobs was posthumously awarded the U.S. presidential medal of freedo
- [tips] get the x-axis and y-axis values of cdfplot function in MATLAB
- 【小技巧】獲取matlab中cdfplot函數的x軸,y軸的數值
- WorkManager的学习二
猜你喜欢
What is the most suitable book for programmers to engage in open source?
Kotlin compose multiple item scrolling
Have you learned to make money in Dingding, enterprise micro and Feishu?
Swift set pickerview to white on black background
最全是一次I2C总结
IDEA新建sprintboot项目
如何写出高质量的代码?
What is the origin of the domain knowledge network that drives the new idea of manufacturing industry upgrading?
学习笔记5--高精地图解决方案
双容水箱液位模糊PID控制系统设计与仿真(Matlab/Simulink)
随机推荐
Workmanager Learning one
Detailed explanation of the use of staticlayout
驱动制造业产业升级新思路的领域知识网络,什么来头?
Fluent generates icon prompt logo widget
报错:Module not found: Error: Can‘t resolve ‘XXX‘ in ‘XXXX‘
Cent7 Oracle database installation error
WorkManager的学习二
Tianlong Babu TLBB series - about items dropped from packages
IDEA新建sprintboot项目
一个程序员的职业生涯到底该怎么规划?
程序员如何活成自己喜欢的模样?
Apple 5g chip research and development failure? It's too early to get rid of Qualcomm
请问postgresql cdc 怎么设置单独的增量模式呀,debezium.snapshot.mo
基于单片机步进电机控制器设计(正转反转指示灯挡位)
To bring Euler's innovation to the world, SUSE should be the guide
Coffeescript Chinese character to pinyin code
uniapp + uniCloud+unipay 实现微信小程序支付功能
WorkManager學習一
RMS TO EAP通过MQTT简单实现
微信小程序中,从一个页面跳转到另一个页面后,在返回后发现页面同步滚动了