let loading = document.getElementByid("#id"); let isLoading = false; let obser = new IntersectionObserver(function(value) { let value = value[0]; if (value.isIntersecting && !isLoading) { // 进行加载 } },{ thresholds: 0.3 //重叠30
专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]
Copyright (C)ICode9.com, All Rights Reserved.
ICode9版权所有