简体   繁体   English

jQuery Datatables从ajax源使用新参数重新加载

[英]jQuery Datatables reload from ajax source with new params

I've been through many other questions that seem to be around the same topic, but none have provided a solution, so here goes. 我遇到了许多其他问题,这些问题似乎都围绕同一主题,但没有一个提供解决方案,因此请继续。 I have a Datatable, initialised with the code at: http://jsfiddle.net/26Aqv/ 我有一个数据表,使用以下代码初始化: http : //jsfiddle.net/26Aqv/

This works. 这可行。

I then want to refresh the datatable with from the same ajax source but with a new parameter. 然后,我想使用相同的ajax源但使用新参数来刷新数据表。

Can anyone help? 有人可以帮忙吗?

I've managed to hack it to work .... and I do believe it's a hack. 我设法对其进行了破解....而且我确实认为这是一种黑客行为。 If anyone can detail the correct way of doing this I'll happily accept your answer over this: 如果有人能详细说明正确的方法,我会很乐意接受您的答复:

tblContactsList.fnReloadAjax('/lists/loadMembers/?lid='+aData[0]+'&'); tblContactsList.fnReloadAjax( '/列表/ loadMembers /盖=?' + ADATA [0] + '&');

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM