Angular中使用datatable.js出現錯誤「ui-router TypeError: Cannot read property 'childNodes' of undefined」的解決方法

若是你在其餘地方找到的方法行不通,而代碼又確實沒有什麼問題javascript

建議把:java

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

 建議把DataTable裏配置使用ajax的地方刪掉,數據獲取使用$http實現ajax

相關文章
相關標籤/搜索