jqueery easyui tree of the selected node or array data makes up json
https://wenda.so.com/q/1535702018212251
Satisfactory answer
The adoption rate: 49% 9 2018.01.20
This requires you strange, but I still meet you.
Add onselect function in the control tree rendering: the following properties themselves against API
$ ( '# treeId') Tree ({.
URL: '',
Disabled: to false,
required: to true,
the editable: to false,
panelHeight: 'by 150px',
ValueField: 'ID',
the textField: 'text',
the onSelect: function (node) {
. Json // this format is the node
the console.log (node);
var Data = [];
data.push (node); // you array
console.log (data); // data [ 0] is the Node
}
});
Add onselect function in the control tree rendering: the following properties themselves against API
$ ( '# treeId') Tree ({.
URL: '',
Disabled: to false,
required: to true,
the editable: to false,
panelHeight: 'by 150px',
ValueField: 'ID',
the textField: 'text',
the onSelect: function (node) {
. Json // this format is the node
the console.log (node);
var Data = [];
data.push (node); // you array
console.log (data); // data [ 0] is the Node
}
});