Jquery数据表:j未定义
这是我第一次看到此错误,但我找不到解决方案:Jquery数据表:j未定义,jquery,datatables,Jquery,Datatables,这是我第一次看到此错误,但我找不到解决方案: var request = $.ajax({ type: "POST", url: "../php/admin_function.php", data: { act: "retrive_faq" }, dataType: "json", success: function (a) { if ("ret" ==
var request = $.ajax({
type: "POST",
url: "../php/admin_function.php",
data: {
act: "retrive_faq"
},
dataType: "json",
success: function (a) {
if ("ret" == a.response || "empty" == a.response) {
if ("ret" == a.response) {
var b = a.faq.length;
for (i = 0; i < b; i++) {
a.faq[i].action = '<div class="btn-group"><button class="btn btn-info editdep" value="' + a.faq[i].id + '"><i class="icon-edit"></i></button><button class="btn btn-danger remdep" value="' + a.faq[i].id + '"><i class="icon-remove"></i></button></div>'
}
}
$("#loading").remove();
$("#faqtable").dataTable({
sDom: "<<'span6'l><'span6'f>r>t<<'span6'i><'span6'p>>",
sWrapper: "dataTables_wrapper form-inline",
bProcessing: !0,
aaData: a.faq,
oLanguage: {sEmptyTable: "No FAQs"},
aoColumns: [
{sTitle: "Id",mDataProp: "id",sWidth: "60px"},
{sTitle: "Question",mDataProp: "question"},
{sTitle: "Postion",mDataProp: "position",sWidth: "50px"},
{sTitle: "Active",mDataProp: "active",sWidth: "60px"},
{sTitle: "Rate",mDataProp: "rate",sWidth: "40px"},
{sTitle: "Toogle",mDataProp: "action",bSortable: !1,bSearchable: !1,sWidth: "60px"}
]
});
} else {
noty({text: a[0],type: "error",timeout: 9E3})
}
}
});
request.fail(function (a, b) {noty({text: b,type: "error",timeout: 9E3})});
我做错了什么?如果在DataTable.js中出现这种错误
TypeError: j[(f - d)] is undefined
L(jQuery)})(window,document);
始终寻找最佳答案
"aoColumns": [{"bSortable": false, "mRender": checkbox}, {"mRender": fld}, null, null, null, {"mRender": row_status}, {"mRender": currencyFormat}, {"bSortable": false}],
这是用于显示记录的每列的实际计数
{"bSortable": false, "mRender": checkbox}
这是一个街区换一个街区
如果您有10个,那么请确保您也有10个以上块TypeDataTables中的错误通常意味着表格html无效,表格的html在哪里?现在我删除该行,然后再次插入更新的行,该表只是带有id和一些类的表标记。当您缺少HTML中正确的
和
标记时,可能会发生这种情况。
{"bSortable": false, "mRender": checkbox}