插件地址:
https://github.com/mricle/Mri...
有没有用这个的同学,或者可以帮忙推荐下自己用的分业插件.
这个插件的例子里面有个问题,不明白.
$("#page").pagination({
pageIndex: pageIndex.value, // def:0
pageSize: pageSize.value, // def:10
total: 100,
debug: true,
showInfo: true,
showJump: true,
showPageSizes: true,
loadFirstPage: true,
remote: {
url: 'data.json',
params: $('form').serializeArray(),
success: function (data) {
$("#eventLog").append(' remote callback : ' + JSON.stringify(data) + '<br />');
}
}
});
下面是data.json文件
{ "total": 214, "list": ""}
里面的remote下的`url: 'data.json',会显示跨域的问题.然后这种情况的跨域怎么解决?本来我想用fidder来做代理的, 可是监控不到这个请求...
大话西游666
相关分类