164 Star 745 Fork 198

yoby / weui

 / 详情

老大,有空把JS分页也封装一下吧

Done
Opened this issue  
2021-04-22 09:18

RT

Comments (2)

pkkgu created任务
pkkgu set related repository to yoby/weui
pkkgu changed title
pkkgu changed description
Expand operation logs

早都有了,ajax分页和底部自动加载,点击加载更多,都属于js封装的分页,传统的分页不需要js封装

至少要放进zepto.weui.js里面吧
然后可以以插件形式调用

$(".pageCss").weuiPage({
    page:1,
    count:1000,
	groups: 10,
    onPageChange:function (page) {
        console.log("当前是:" + page);
    }
});

https://weui.shanliwawa.top/weui/demo/js101.html

yoby changed issue state from 待办的 to 已完成

Sign in to comment

Status
Assignees
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(2)
616004 yoby 1578929281
JavaScript
1
https://git.oschina.net/yoby/weui.git
git@git.oschina.net:yoby/weui.git
yoby
weui
weui

Search