This repository has been archived by the owner on Sep 25, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 65
'children' of undefined #1
Comments
Hi, Good luck. |
Hi, {
"success": true,
"code": "success",
"message": "操作成功",
"data": [
{
"children": [
{
"leaf": true,
"code": "100001",
"grade": "1",
"id": 2,
"name": "公司领导",
"root": false,
"treePath": ",1,",
"type": "2"
},
{
"leaf": true,
"code": "100002",
"grade": "1",
"id": 3,
"name": "人力部",
"root": false,
"treePath": ",1,",
"type": "2"
},
{
"leaf": true,
"code": "100003",
"grade": "1",
"id": 4,
"name": "市场部",
"root": false,
"treePath": ",1,",
"type": "2"
},
{
"leaf": true,
"code": "100004",
"grade": "1",
"id": 5,
"name": "技术部",
"root": false,
"treePath": ",1,",
"type": "2"
},
{
"leaf": true,
"code": "100005",
"grade": "1",
"id": 6,
"name": "研发部",
"root": false,
"treePath": ",1,",
"type": "2"
},
{
"children": [
{
"leaf": true,
"code": "200001",
"grade": "2",
"id": 8,
"name": "公司领导",
"root": false,
"treePath": ",1,7,",
"type": "2"
},
{
"leaf": true,
"code": "200002",
"grade": "2",
"id": 9,
"name": "综合部",
"root": false,
"treePath": ",1,7,",
"type": "2"
}
],
"leaf": false,
"code": "200000",
"grade": "2",
"id": 7,
"name": "山东省分公司",
"root": false,
"treePath": ",1,",
"type": "1"
}
],
"leaf": false,
"code": "100000",
"grade": "1",
"id": 1,
"name": "北京市总公司",
"root": true,
"treePath": ",",
"type": "1"
}
]
} |
I resoved this problem,bacause my jquery.datatales.js version is 1.10.7 and yours is 1.10.13-dev,my version is too low,when I upgraded,the problem is gone |
Please mark this as closed. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I use datatables with ajax and server side, but when I click on expand, I get an error
Uncaught TypeError: Cannot read property 'children' of undefined
The text was updated successfully, but these errors were encountered: