当前位置:网站首页>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 !
边栏推荐
- How to get the STW (pause) time of GC (garbage collector)?
- leetcode:1200. 最小绝对差
- Swift saves an array of class objects with userdefaults and nssecurecoding
- Meitu lost 300 million yuan in currency speculation for half a year. Huawei was exposed to expand its enrollment in Russia. Alphago's peers have made another breakthrough in chess. Today, more big new
- Energy momentum: how to achieve carbon neutralization in the power industry?
- 学习笔记4--高精度地图关键技术(下)
- 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
- Pagoda panel MySQL cannot be started
- Workmanager learning 1
- SLAM 01.人类识别环境&路径的模型建立
猜你喜欢

WorkManager學習一

ByteDance Interviewer: how to calculate the memory size occupied by a picture

【小技巧】獲取matlab中cdfplot函數的x軸,y軸的數值

字节跳动面试官:一张图片占据的内存大小是如何计算

RMS TO EAP通过MQTT简单实现

Those who are good at using soldiers, hide in the invisible, and explain the best promotional value works in depth in 90 minutes

> Could not create task ‘:app:MyTest.main()‘. > SourceSet with name ‘main‘ not found.问题修复

How to plan the career of a programmer?

Timed disappearance pop-up
![[tips] get the x-axis and y-axis values of cdfplot function in MATLAB](/img/08/2d039df6ea3ace8685512b2af8281d.png)
[tips] get the x-axis and y-axis values of cdfplot function in MATLAB
随机推荐
基于单片机步进电机控制器设计(正转反转指示灯挡位)
《剑来》语句摘录(七)
Those who are good at using soldiers, hide in the invisible, and explain the best promotional value works in depth in 90 minutes
RMS to EAP is simply implemented through mqtt
C function returns multiple value methods
Apple 5g chip research and development failure? It's too early to get rid of Qualcomm
[论文阅读] CKAN: Collaborative Knowledge-aware Atentive Network for Recommender Systems
字节跳动面试官:一张图片占据的内存大小是如何计算
Detailed explanation of the use of staticlayout
天龙八部TLBB系列 - 关于技能冷却和攻击范围数量的问题
To bring Euler's innovation to the world, SUSE should be the guide
AtCoder Beginner Contest 258「ABCDEFG」
AtCoder Beginner Contest 254「E bfs」「F st表维护差分数组gcd」
历史上的今天:第一本电子书问世;磁条卡的发明者出生;掌上电脑先驱诞生...
一种用于干式脑电图的高密度256通道电极帽
Jupiter notebook shortcut key
程序员如何活成自己喜欢的模样?
Universal double button or single button pop-up
TypeError: Cannot read properties of undefined (reading ‘cancelToken‘)
【JS】数组降维