bootstraptable refresh改变参数式怎么让offset变为零
3 回答

千巷猫影
TA贡献1829条经验 获得超7个赞
ewBag.loginname = Session["loginname"];
HashSet<int> role =(HashSet<int>) Session["loginrole"];
if(role.Contains(1))
{
Session["roleflag"] = "1";
ViewBag.loginrole = "管理员";
}
var user=db.UserInfos.Include(u=>u.Department).ToList();
var total=user.Count;
var rows=user.S

哆啦的时光机
TA贡献1779条经验 获得超6个赞
set {url: newUrl} to change the url
设置一个url参数,他就会重新指定url数据,offset也会从0开始;如果你不设置的话url参数里的内容不会刷新,这时即便你设置了query:{offset:0}参数分页虽然数据是取对了,但是的显示分页页码还是之前的页码。

繁星点点滴滴
TA贡献1803条经验 获得超3个赞
$('#data_container').bootstrapTable('selectPage', 1);
$('#data_container').bootstrapTable(('refresh'));
通过这两行可以实现效果,但是跟踪了一下,好像对Controller发了两次请求,第一次没返回,第二次才真正返回数据
- 3 回答
- 0 关注
- 954 浏览
添加回答
举报
0/150
提交
取消