H5 pagination dropdown loading event

$(window).scroll(
		function() {
            // total height of the page
			var scrollHeight = $(document).height();
			// already scrolled to the page height above
			var scrollTop = $(this).scrollTop();
			// browser window height
			var windowHeight = $(this).height();
			//Here is the event triggered when the scroll bar reaches the bottom, write the data to be loaded here, or the operation of pulling the scroll bar
			if (scrollTop + windowHeight == scrollHeight) {
		           //Here is to pull to the bottom, send a request to get the next page
			}
	});

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326212047&siteId=291194637
Recommended