目前我的数据表格使用ajax调用时在URL中传递参数。
但我希望将其作为POST
方法传递,请有经验的人帮助我关于使用post方法传递参数,这是我的尝试代码:
// Sending through GET
var $table = $('#example').dataTable(
"processing": true,
"serverSide": true,
"bDestroy": true,
"bJQueryUI": true,
"ajax": 'getResult.php?formName=afscpMcn&action=search&mcn_no='+mcnNum+'&cust_nm='+cust_num+'&emp_id='+emp+''
});