DataTable TypeError: d.t trim不是一个函数



我在value组件中使用了DataTable

$(this.$el).DataTable({
data: this.rows,
columns: this.cols,
rowGroup: this.rowGroupData || null,
.....

调用表:

if (this.dtHandle) {
this.dtHandle.clear();
this.dtHandle.rows.add(this.tableData);
console.log("data");
console.log(this.tableData);
this.dtHandle.draw();
}

但是在调用this. dthhandle .draw()时出现了错误

TypeError: d.trim is not a function

如何修复?

表中无效的数据类型。上桌前检查一下。

最新更新