Angular中使用datatable.js出现错误“ui-router TypeError: Cannot read property 'childNodes' of undefined”的解决方法

如果你在其他地方找到的方法行不通,而代码又确实没有什么问题

建议把:

 $('#ele').DataTable({
//ajax: {
//url: '',
//dataSrc: 'data'
//}
});

 建议把DataTable里配置使用ajax的地方删掉,数据获取使用$http实现