ZTree增加节点
var Node = [{ id: 1, pId: 0, name: GradeName, open: true }, ];
var bookNodes = [{ id: 11, pId: 1, name: BookName, open: true}];
现在我需要把bookNodes作为Node的子节点,请问增加语句怎么写呢?
------解决方案-------------------- var Node = [{ id: 1, pId: 0,name: GradeName, open: true, bookNodes: [{ id: 11, pId: 1, name: BookName, open: true}]}];