$(document).ready(function() {
$('#example').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "scripts/server_processing.php",
"fnServerParams": function ( aoData ) {
aoData.push( { "name": "more_data", "value": "my_value" } );//name 就是参数名,value,是它对应的数值
}
} );
} );
datatables 远程json数据,传参数
最新推荐文章于 2021-09-30 20:37:48 发布