87,907
社区成员
发帖
与我相关
我的任务
分享
$('#dataTables-example').DataTable({
//略...
fnServerData : function(sSource, aoData, fnCallback) {
aoData.push({"name": "cateId", "value": $(currentNode).attr("id")});
aoData.push({"name": "publishRuleId", "value": $("#publishRule").val()});
$.ajax({
"type" : 'post',
"url" : sSource,
"dataType" : "json",
"data" : {
aoData : JSON.stringify(aoData)
},
"success" : function(resp) {
fnCallback(resp);
}
});
}
});
aoData.push({"name": "pageIndex", "value": ??});