19
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

DataTables で "Cannot read property 'mData' of undefined"

Last updated at Posted at 2016-05-13

DataTables で "Cannot read property 'mData' of undefined"

忘れたころに遭遇して、毎回調べるのでメモする。

原因

a. <table><thead>, <tbody> を定義していない。
b. <thead><tbody> で列数が異なる。

対処

a. <thead>, <tbody> を定義する。
b. 列数を同じにする。

確認した環境

  • DataTables 1.10.11
  • jQuery 1.12.0
19
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
19
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?