数据表没有从 json 文件中获取数据,我不知道如何修复,它显示 404 错误,文件访问错误
$(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"
]
]
}