是否可以在datatable ajax调用中成功调用javascript函数.这是我尝试使用的代码,
var oTable = $('#app-config').dataTable(
{
"bAutoWidth": false,
"bDestroy":true,
"bProcessing" : true,
"bServerSide" : true,
"sPaginationType" : "full_numbers",
"sAjaxSource" : url,
"fnServerData" : function(sSource, aoData, fnCallback) {
alert("sSource"+ sSource);
alert("aoData"+ aoData);
$.ajax({
"dataType" : 'json',
"type" : "GET",
"url" : sSource,
"data" : aoData,
"success" : fnCallback
});
}
Run Code Online (Sandbox Code Playgroud)
是否可能有类似的东西,
success : function(){
//.....code goes here
}
Run Code Online (Sandbox Code Playgroud)
而不是"成功":fnCallback ------>这是AJAX调用的最后一行.在这个函数中,我想检查从服务器端发送的值.在此先感谢任何帮助....