-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
datatable如何重新加载新的数据-搜索替换原有数据 #521
Comments
@xxssjj119922 你只需要调用DT提供的重新加载数据的api即可, 传递参数,你需要参考这个文档:https://datatables.club/reference/option/ajax.data $('#example').dataTable( {
"ajax": {
"url": "data.json",
"data": function ( d ) {
return $.extend( {}, d, {
"extra_search": $('#extra').val()
} );
}
}
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
目前只写到这里。
在找一个方法如何将表里面行数据清除,表头和处理方式都保留,
重新加载接受成功的data数据。
自定义模糊搜索,点击按钮响应。
求大神回复,谢谢!
代码看不清楚的话我放文本文件,感谢感谢
新建文本文档 (2).txt
The text was updated successfully, but these errors were encountered: