微信6.7.4 ios12软键盘顶起页面后隐藏不回弹解决方案
作者:互联网
temporaryRepair () {
let currentPosition, timer
let speed = 1 // 页面滚动距离
timer = setInterval(function () {
currentPosition = document.documentElement.scrollTop || document.body.scrollTop
currentPosition -= speed
window.scrollTo(0, currentPosition) // 页面向上滚动
currentPosition += speed // speed变量
window.scrollTo(0, currentPosition) // 页面向下滚动
clearInterval(timer)
}, 1)
}
标签:ios12,滚动,scrollTo,微信,timer,6.7,currentPosition,speed,页面 来源: https://blog.csdn.net/chrispy1314/article/details/100516685