如何修复此错误?:Tracker重新计算功能的异常:TypeError:data [a [i]]不是函数

时间:2016-10-28 12:46:42

标签: meteor datatables

我使用的是aldeed:tabular。这是我的模板:

<template name="contactsDatatable">
    {{> tabular table=TabularTables.Contacts class="table table-striped table-bordered table-condensed" }}
</template>

这是我的表配置对象:

TabularTables = {};
TabularTables.Contacts = new Tabular.Table({
  name: "Contacts",
  collection: Contacts,
  columns: [
    {data: "firstName", title: "First"},
    {data: "lastName", title: "Last"},
  ]
})

我收到此错误:

Exception from Tracker recompute function:
meteor.js?hash=ae8b8af…:930 TypeError: data[a[i]] is not a function
    at fetchData (aldeed_tabular.js?hash=b303d5b…:1429)
    at aldeed_tabular.js?hash=b303d5b…:1445
    at Object.oCol.fnGetData (aldeed_tabular.js?hash=b303d5b…:850)
    at _fnGetCellData (aldeed_tabular.js?hash=b303d5b…:1262)
    at _fnCreateTr (aldeed_tabular.js?hash=b303d5b…:1872)
    at _fnAddData (aldeed_tabular.js?hash=b303d5b…:1187)
    at _fnAjaxUpdateDraw (aldeed_tabular.js?hash=b303d5b…:2884)
    at aldeed_tabular.js?hash=b303d5b…:2729
    at callback (aldeed_tabular.js?hash=b303d5b…:2621)
    at jQuery.fn.init.ajax (aldeed_tabular.js?hash=b303d5b…:15939)

关于如何解决此问题的任何想法?

0 个答案:

没有答案