当前位置:网站首页>Mobile terminal pull-down loading pull-down loading data
Mobile terminal pull-down loading pull-down loading data
2022-06-26 04:17:00 【Never bow】
Go straight to the code Remember to introduce js
$(window).scroll(function() {
var scrollTop = $(this).scrollTop();
var scrollHeight = $(document).height();
var windowHeight = $(this).height();
var positionValue = (scrollTop + windowHeight) - scrollHeight;
if (positionValue >= 0 && page < max_page) {
// perform ajax, get data
$.ajax({
url:"/api/xxxxxx",
data:{
'page':1,
'limit':10,
'type':'ajax',
},
type:'post',
dataType:"json",
success:function (res) {
console.log(res);
}
})
}
});
边栏推荐
- Force buckle 515 Find the maximum value in each tree row
- Introduction Guide to the flutterplugin plug-in in the actual combat of flutter
- pip 批量完全卸载包
- Wechat applet is bound to a dynamic array to implement a custom radio box (after clicking the button, disable the button and enable other buttons)
- High performance computing center roce overview
- Development prospect and investment strategic planning report of global and Chinese PVC hose industry from 2022 to 2028
- Knowledge of SQL - database design, backup and restore
- Read / write lock for thread synchronization
- Spark - understand parquet
- 2021 year end summary
猜你喜欢
![ctf [RoarCTF 2019]easy_ calc](/img/c7/16adb8e4b64a4be2129a6c53c5aaa7.jpg)
ctf [RoarCTF 2019]easy_ calc

How to use EEPROM in 51 Single Chip Microcomputer?

After a test of 25K bytes, I really saw the basic ceiling

matplotlib折线图,文字显示,win10

Zeromq from getting started to mastering

Capture packets (Wireshark)
![[Flink] Flink source code analysis - creation of jobgraph in batch mode](/img/8e/1190eec23169a4d2a06e1b03154d4f.jpg)
[Flink] Flink source code analysis - creation of jobgraph in batch mode

What preparation should I make before learning SCM?

High performance computing center roce overview

The open software of win10 system is too small. How to make it larger (effective through personal test)
随机推荐
WPF 值转换
How to use EEPROM in 51 Single Chip Microcomputer?
CTF serialization and deserialization
asp. Net web page, ASP connects to the database, and uses asp:panel and asp:dropdownlist controls
线程同步之条件变量
Matplotlib multi line chart, dot scatter chart
軟件調試測試的十大重要基本准則
Custom parameter QR code picture combined with background picture to generate new picture node environment
Capture packets (Wireshark)
Knowledge of functions
Analysis report on the development trend and operation status of China's environmental monitoring instrument industry from 2022 to 2028
Unity移动端游戏性能优化简谱之 以引擎模块为划分的CPU耗时调优
[Qunhui] command line acme SH automatically apply for domain name certificate
Lua grammar explanation
In 2022, what professional competitions can college students majoring in automation, electrical engineering and automation participate in?
Ten important basic principles of software debugging and testing
線程同步之讀寫鎖
Ipvs0 network card of IPVS
Development trend and prospect forecast report of China's financial industry 2022-2028 Edition
小程序中实现视频通话及互动直播功能