当前位置:网站首页>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);
}
})
}
});
边栏推荐
- Principle and implementation of syn cookie
- 1. foundation closing
- Introduction Guide to the flutterplugin plug-in in the actual combat of flutter
- Mutex of thread synchronization (mutex)
- Analysis of the principle of obxwidget
- Zeromq from getting started to mastering
- What should I do if I don't understand the precious metal indicators
- [Qunhui] command line acme SH automatically apply for domain name certificate
- Chrome page recording and playback function
- 判断两个集合的相同值 ||不同值
猜你喜欢
一幅脑图总结一下需求分析(工作上实际遇到的情况的补充)
Threejs special sky box materials, five kinds of sky box materials are downloaded for free
The stc-isp burning program for 51 single chip microcomputer always shows that "the target single chip microcomputer is being detected..." the cold start board does not respond
解析JSON接口并批量插入到数据库中
使用Jsoup提取接口中的图片
[QT] dialog box
Ubuntu installs PostgreSQL and uses omnidb to view
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)
(15) Blender source code analysis flash window display menu function
钉钉开放平台-小程序开发实战(钉钉小程序客户端)
随机推荐
Upload script file (one sentence back door) WAF bypass (PHP)
Detr3d multi 2D picture 3D detection framework
Getter actual combat geTx tool class encapsulation -getutils
Judge the same value of two sets 𞓜 different values
Lua grammar explanation
钉钉开放平台-小程序开发实战(钉钉小程序客户端)
Mutex of thread synchronization (mutex)
Analysis of updatechild principle of widget update mechanism of fluent
Spark - 一文搞懂 parquet
How to use EEPROM in 51 Single Chip Microcomputer?
What if the serial port fails to open when the SCM uses stc-isp to download software?
Three level menu applet
Report on demand situation and development trend of China's OTC industry from 2022 to 2028
Sorting out the examination sites of the 13th Blue Bridge Cup single chip microcomputer objective questions
The style of the mall can also change a lot. DIY can learn about it
Knowledge of SQL - database design, backup and restore
pip 批量完全卸载包
[Qunhui] import certificate
小程序中实现视频通话及互动直播功能
chrome页面录制,重放功能