关于微信网页弹出框后底层页面不动的问题

在网上找到一种办法

body 和 html 加overflow:hidden;

弹窗后底层不能滚动,但是底层会scroll到顶层

segmentfault上找到更完美的解决办法,原文链接找不到了。

$('body')[0].addEventListener('touchmove', move, false);
$('body')[0].removeEventListener('touchmove', move, false);
function move(e)
{
  e.preventDefault();
  e.stopPropagation();
}

原文地址:https://www.cnblogs.com/nightfallsad/p/6169172.html