我面临一个奇怪的问题。我的数据表抛出警告警告:
请求的未知参数' QualifyTime(Sec。)'第0行第1列
虽然我的数组grid
包含此参数,但为什么它找不到这个。是因为参数名称QualifyTime(Sec.)
包含特殊字符吗?
示例数组:
grid = [{
ProviderName: "ATT",
QualifyTime(Sec.): "6.48",
TotalServiceableOffers: "0"
}, {
ProviderName: "CENTURYLINK",
QualifyTime(Sec.): "3.67",
TotalServiceableOffers: "not serviceable"
}];
jQuery数据表代码:
$(tableId).dataTable({
"autoWidth": false,
"searching": false,
"pageLength": 20,
"bDestroy": true,
"bInfo": true,
"paging": false,
data: gridData,
columns: [{
"data": "ProviderName"
}, {
"data": "QualifyTime(Sec.)"
}, {
"data": "TotalServiceableOffers"
}]
});