下拉到底

182 阅读1分钟
let el=document.querySelector('#mycircle');//绑定判断的div
			const scrollTop = el.scrollTop;//当前滚动条匹配元素的滚动条的垂直位置。
			const scrollHeight = el.scrollHeight;//当前滚动条的高度
			if ((el.offsetHeight + scrollTop) - scrollHeight == 0) {
				
				//置底
			    
			}