Get the App
SLTechnology News&Howtos  ›  Development  › 

How to achieve non-refresh dynamic loading data scroll bar loading suitable for comments and other pages

Shulou Source: shulou.com Published: 2022-06-03 07:38:13 11月15日 Update

This article introduces the relevant knowledge of "how to load suitable comments and other pages without refreshing dynamic loading data scroll bar". In the operation of actual cases, many people will encounter such a dilemma. Next, let the editor lead you to learn how to deal with these situations! I hope you can read it carefully and be able to achieve something!

The copy code is as follows:

Js file

The copy code is as follows:

$(function () {)

Var winH = $(window) .height (); / / the height of the visible area of the page

Var I = 1

$(window) .subscription (function () {

Var pageH = $(document.body) .height ()

Var scrollT = $(window) .scrollTop (); / / scroll bar top

Var aa = (pageH-winH-scrollT) / winH

If (aa

This is the end of the content of "how to achieve non-refresh dynamic loading data scroll bar loading suitable for comments and other pages". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Code data pages dynamic comments content more knowledge output practicality learning and then regions dilemmas facts situations documents articles cases editing Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Xiaomi Microsoft Shulou Technology vpn