0
數據表不是從JSON文件中獲取數據,我不知道如何解決,它顯示404錯誤,文件存取錯誤數據表沒有顯示從JSON文件中的數據在本地主機上
$(document).ready(function() {
$('#example').dataTable({
"ajax": "data.json"
});
});
</script>
/- -------------------------------------------------- --------/
{
"data": [
[
"Tiger Nixon",
"System Architect",
"Edinburgh",
"5421"
],
[
"Garrett Winters",
"Accountant",
"Tokyo",
"8422"
],
[
"Ashton Cox",
"Junior Technical Author",
"San Francisco",
"1562"
]
]
}
控制檯中的消息是什麼? – Arun
http:// localhost:56341/wp-admin/user.css加載資源失敗:服務器響應狀態爲404(未找到)@Arun –
不支持css。與datatables? – Arun