imjyb1008work

jQuery DataTables 對欄位進行搜尋

Jan 20th, 2020
435
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var table = $("#dataTable").DataTable();
  2.  
  3. //對全部欄位進行搜尋
  4. table.search("Justin的資訊手札").draw();
  5.  
  6. //對第3個索引的欄位進行搜尋
  7. table.columns(3).search("Justin的資訊手札").draw();
Add Comment
Please, Sign In to add comment