Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
283 views
in Technique[技术] by (71.8m points)

PHP+dropload下滑加载分页,后台接收不到p>1的值

这是相关的ajax一部分
clipboard.png

控制台打印p,每次都有增加
clipboard.png

这是后台分页的相关代码
先获取get和limit(每页显示5条)
再根据p判断。数据时一次全部读取出来的,根据p,用array_slice取值。
clipboard.png

前台p++明明每次都有叠加,为什么传到后台p一直只是1,所以每次只能获取到前5条信息


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

谢邀!

建议你post提交,因为我看到你当前页面的URL也有个p参数。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...