如果你在其他地方找到的方法行不通,而代码又确实没有什么问题
建议把:
$('#ele').DataTable({ //ajax: { //url: '', //dataSrc: 'data' //} });
建议把DataTable里配置使用ajax的地方删掉,数据获取使用$http实现