最佳答案
您可以添加 :visible选择器:
$(document).ready(function() {
var table = $('#example').DataTable();
$('button').click( function() {
var data = table.$('input:visible, select:visible').serialize();
alert(
"The following data would have been submitted to the server: \n\n"+
data.substr( 0, 120 )+'...'
);
return false;
} );
} );
关于javascript - 数据表仅选择过滤的内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25680835/