Jquery 远程JSON赢得';不要加载到动态表中,请纠正我哪里做错了
我试图将远程JSON文件加载到dynatables中,但dynatables不会显示任何数据 这是我的桌子Jquery 远程JSON赢得';不要加载到动态表中,请纠正我哪里做错了,jquery,json,dynatable,Jquery,Json,Dynatable,我试图将远程JSON文件加载到dynatables中,但dynatables不会显示任何数据 这是我的桌子 <table class="table table-striped" id="myTable"> <thead> <th>orgid</th> <th>uniqusers</th> <th>transacs</th> &l
<table class="table table-striped" id="myTable">
<thead>
<th>orgid</th>
<th>uniqusers</th>
<th>transacs</th>
<th>traffic</th>
<th>advthreats</th>
<th>malware</th>
<th>org_name</th>
<th>domain</th>
<th>partner</th>
</thead>
<tbody>
</tbody>
</table>
和JSON文件数据
{"records": [{"orgid":5529306,"uniqusers":"58","transacs":"11448173","traffic":"412234 033129","advthreats":"28832","malware":"61","org_name":"Education Futures Group","domain":"vistacollege.edu","partner":"Teknas, Inc."}, {"orgid":8140488,"uniqusers":"7","transacs":"13101121","traffic":"39907320 0170","advthreats":"13093","malware":"10","org_name":"Newham College of Further Education","domain":"newham.ac.uk","partner":"iCritical"}, {"orgid":11621785,"uniqusers":"8","transacs":"56850","traffic":"1011450886 ","advthreats":"5","malware":"0","org_name":"Limerick Education Centre","domain":"lec.ie","partner":"iCritical"},
{"orgid":5529306,"uniqusers":"58","transacs":"11448173","traffic":"4122340 33129","advthreats":"28832","malware":"61","org_name":"Education Futures Group","domain":"vistacollege.edu","partner":"Teknas, Inc."},
{"orgid":5529306,"uniqusers":"58","transacs":"11448173","traffic":"4122340 33129","advthreats":"28832","malware":"61","org_name":"Education Futures Group","domain":"vistacollege.edu","partner":"Teknas, Inc."},
{"orgid":5529306,"uniqusers":"58","transacs":"11448173","traffic":"4122340 33129","advthreats":"28832","malware":"61","org_name":"Education Futures Group","domain":"vistacollege.edu","partner":"Teknas, Inc."},
{"orgid":5529306,"uniqusers":"58","transacs":"11448173","traffic":"4122340 33129","advthreats":"28832","malware":"61","org_name":"Education Futures Group","domain":"vistacollege.edu","partner":"Teknas, Inc."},
{"orgid":5529306,"uniqusers":"58","transacs":"11448173","traffic":"4122340 33129","advthreats":"28832","malware":"61","org_name":"Education Futures Group","domain":"vistacollege.edu","partner":"Teknas, Inc."},
{"orgid":5529306,"uniqusers":"58","transacs":"11448173","traffic":"4122340 33129","advthreats":"28832","malware":"61","org_name":"Education Futures Group","domain":"vistacollege.edu","partner":"Teknas, Inc."},
{"orgid":5529306,"uniqusers":"58","transacs":"11448173","traffic":"4122340 33129","advthreats":"28832","malware":"61","org_name":"Education Futures Group","domain":"vistacollege.edu","partner":"Teknas, Inc."},
{"orgid":5529306,"uniqusers":"58","transacs":"11448173","traffic":"4122340 33129","advthreats":"28832","malware":"61","org_name":"Education Futures Group","domain":"vistacollege.edu","partner":"Teknas, Inc."},
{"orgid":5529306,"uniqusers":"58","transacs":"11448173","traffic":"4122340 33129","advthreats":"28832","malware":"61","org_name":"Education Futures Group","domain":"vistacollege.edu","partner":"Teknas, Inctest."}],"queryRecordCount":"10","totalRecordCount":"12"}
请帮助尝试更改您的thead数据属性,如下所示(这对我很有用):
狂欢
大学
transacs
交通
警告威胁
恶意软件
组织名称
领域
配偶
适用标准调试规则;检查控制台和网络监视器是否有错误。@Rory McCrossan..找不到问题所在,我是初学者。帮助我知道我错在哪里
{"records": [{"orgid":5529306,"uniqusers":"58","transacs":"11448173","traffic":"412234 033129","advthreats":"28832","malware":"61","org_name":"Education Futures Group","domain":"vistacollege.edu","partner":"Teknas, Inc."}, {"orgid":8140488,"uniqusers":"7","transacs":"13101121","traffic":"39907320 0170","advthreats":"13093","malware":"10","org_name":"Newham College of Further Education","domain":"newham.ac.uk","partner":"iCritical"}, {"orgid":11621785,"uniqusers":"8","transacs":"56850","traffic":"1011450886 ","advthreats":"5","malware":"0","org_name":"Limerick Education Centre","domain":"lec.ie","partner":"iCritical"},
{"orgid":5529306,"uniqusers":"58","transacs":"11448173","traffic":"4122340 33129","advthreats":"28832","malware":"61","org_name":"Education Futures Group","domain":"vistacollege.edu","partner":"Teknas, Inc."},
{"orgid":5529306,"uniqusers":"58","transacs":"11448173","traffic":"4122340 33129","advthreats":"28832","malware":"61","org_name":"Education Futures Group","domain":"vistacollege.edu","partner":"Teknas, Inc."},
{"orgid":5529306,"uniqusers":"58","transacs":"11448173","traffic":"4122340 33129","advthreats":"28832","malware":"61","org_name":"Education Futures Group","domain":"vistacollege.edu","partner":"Teknas, Inc."},
{"orgid":5529306,"uniqusers":"58","transacs":"11448173","traffic":"4122340 33129","advthreats":"28832","malware":"61","org_name":"Education Futures Group","domain":"vistacollege.edu","partner":"Teknas, Inc."},
{"orgid":5529306,"uniqusers":"58","transacs":"11448173","traffic":"4122340 33129","advthreats":"28832","malware":"61","org_name":"Education Futures Group","domain":"vistacollege.edu","partner":"Teknas, Inc."},
{"orgid":5529306,"uniqusers":"58","transacs":"11448173","traffic":"4122340 33129","advthreats":"28832","malware":"61","org_name":"Education Futures Group","domain":"vistacollege.edu","partner":"Teknas, Inc."},
{"orgid":5529306,"uniqusers":"58","transacs":"11448173","traffic":"4122340 33129","advthreats":"28832","malware":"61","org_name":"Education Futures Group","domain":"vistacollege.edu","partner":"Teknas, Inc."},
{"orgid":5529306,"uniqusers":"58","transacs":"11448173","traffic":"4122340 33129","advthreats":"28832","malware":"61","org_name":"Education Futures Group","domain":"vistacollege.edu","partner":"Teknas, Inc."},
{"orgid":5529306,"uniqusers":"58","transacs":"11448173","traffic":"4122340 33129","advthreats":"28832","malware":"61","org_name":"Education Futures Group","domain":"vistacollege.edu","partner":"Teknas, Inctest."}],"queryRecordCount":"10","totalRecordCount":"12"}
<table class="table table-striped" id="myTable">
<thead>
<th data-dynatable-column="orgid">orgid</th>
<th data-dynatable-column="uniqusers">uniqusers</th>
<th data-dynatable-column="transacs">transacs</th>
<th data-dynatable-column="traffic">traffic</th>
<th data-dynatable-column="advthreats">advthreats</th>
<th data-dynatable-column="malware">malware</th>
<th data-dynatable-column="org_name">org_name</th>
<th data-dynatable-column="domain">domain</th>
<th data-dynatable-column="partner">partner</th>
</thead>
<tbody>
</tbody>
</table>