Closed wangjingyu closed 10 years ago
你后端写分页程序了吗
没有写分页,这个分页不是在前端实现的么,我后台只给了一段json数据没有别的东西
------------------ 原始邮件 ------------------ 发件人: "Miemie Li";notifications@github.com; 发送时间: 2014年7月31日(星期四) 晚上6:12 收件人: "miemiedev/mmGrid"mmGrid@noreply.github.com; 抄送: "╰王☆(_少╮"jingyu_wang@qq.com; 主题: Re: [mmGrid] 分页问题 (#37)
你后端写分页程序了吗
— Reply to this email directly or view it on GitHub.
前端只是个展现和传参,实际的分页还需要后端来实现
嗯好的谢谢,我在研究一下,麻烦了
------------------ 原始邮件 ------------------ 发件人: "Miemie Li";notifications@github.com; 发送时间: 2014年8月1日(星期五) 上午10:04 收件人: "miemiedev/mmGrid"mmGrid@noreply.github.com; 抄送: "╰王☆(_少╮"jingyu_wang@qq.com; 主题: Re: [mmGrid] 分页问题 (#37)
前端只是个展现和传参,实际的分页还需要后端来实现
— Reply to this email directly or view it on GitHub.
请问第几页那个按钮的数值,怎么能传到后台呢,比如点第5页,需要把这个5传到后台我才能重新查询。大神给指示下
------------------ 原始邮件 ------------------ 发件人: "Miemie Li";notifications@github.com; 发送时间: 2014年8月1日(星期五) 上午10:39 收件人: "miemiedev/mmGrid"mmGrid@noreply.github.com; 抄送: "╰王☆(_少╮"jingyu_wang@qq.com; 主题: Re: [mmGrid] 分页问题 (#37)
Closed #37.
— Reply to this email directly or view it on GitHub.
你不需要传,分页插件会自己传
弄出来了!大神,你还是应该加个说明文档,比较好。在后台直接$_GET['page'] 和$_GET['limit'] 就ok了。
------------------ 原始邮件 ------------------ 发件人: "Miemie Li";notifications@github.com; 发送时间: 2014年8月1日(星期五) 晚上8:06 收件人: "miemiedev/mmGrid"mmGrid@noreply.github.com; 抄送: "╰王☆(_少╮"jingyu_wang@qq.com; 主题: Re: [mmGrid] 分页问题 (#37)
你不需要传,分页插件会自己传
— Reply to this email directly or view it on GitHub.
var mmg = $('.mmg').mmGrid({ height: 480 , cols: cols , url: 'ROOT/index.php/Data/get_json' , method: 'get' , remoteSort:false //如何使用客服端排序需要改成true //, items: items //客户端数据 , sortName: 'date' //排序的字段名。字段名的值为列模型设置的sortName或name中的值。 , sortStatus: 'desc' //排序方向。 , multiSelect: true //数据使用本地对象数组 , checkCol: true //表格显示checkbox , indexCol: true //列索引 , showBackboard: true //是否显示背板 默认true , nowrap: true //表格显示的数据超出列宽时是否换行。 , indexColWidth: 20 //表格索引列宽度 , fullWidthRows: true //true:表格第一次加载数据时列伸展,自动充满表格。 , autoLoad: true , params:{Pa:'10'}
代码如上,分页不好用,跟演示站一样,点击下一页时,只有列(indexCol)在动,而数据没有动,大神帮帮忙。看看这有啥问题