我在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
如何修复?
表中无效的数据类型。上桌前检查一下。