jqueery easyui tree node data of the selected spell or json array (very important)

jqueery easyui tree of the selected node or array data makes up json

pqxhk 10-category: Other been accessed 14 times 2018.01.19

 

 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 
    }
});

Guess you like

Origin www.cnblogs.com/bwdblogs/p/11095334.html