document.querySelector('body').addEventListener('touchmove', function(e) {
if (!document.querySelector('.articleBox').contains(e.target)) {
e.preventDefault();
}
})
Writing like this can still be displayed. How to deal with it? .articleBox is the part that needs to be scrolled
If in WeChat on iOS, you can position the block that does not require scrolling as fixed, the block will not drop down and leak out of the source page.
Reference link: http://www.cnblogs.com/cococe...
Use iscroll