我一直在使用引导表有关的问题。 让我们来看看这个例子bootstraptable data-url attribut不需要的查询参数! :(
http://issues.wenzhixin.net.cn/bootstrap-table/#options/server-side-pagination.html
的源代码,你会发现 数据-URL =“/例子/ bootstrap_table /数据” 时运行该示例页面,看看什么的GET调用,您将看到:
GET http://issues.wenzhixin.net.cn/examples/bootstrap_table/data?order=asc&offset=0&limit=10
数据背后的查询参数: ?order = asc & offset = 0 & limit = 10 它与我的api不兼容,我的api发送一个清晰的jason回来。 :( 我可以设法删除“偏移量= 0 &限制= 10”与属性 data-pagination =“false或不设置它 但我最终以?order = asc或?order = desc when我把属性数据排序顺序=“desc”当我不设置属性我结束了查询参数?order = asc。 iwant完全删除查询参数,当我需要一些我设置它自己的url属性。 请帮助我。
非常感谢你!
我建议你添加一个拨弄你的精缩工作代码。 – Wtower
以后我会做,感谢tipp。 但是bootstrap-table在每个示例上的行为都会查看它发送的GET请求吗?order = asc当data-url url attribut指向直接api调用时(而不是file.json) ! – PeterPlanlos