Ztree only gets an array of nodes that are currently selected or unchecked.

The official document of

ztree only gives a collection of canceled or selected nodes of all nodes. Now I just want to get the id and status of the node of the currently selected item. What can I do?
Code:

 //
    function zTreeOnCheck(event, treeId, treeNode) {
        
        var treeObj = $.fn.zTree.getZTreeObj(treeId);       
        var nodesSelect = treeObj.getCheckedNodes();
        var    nodes1 = treeObj.getChangeCheckedNodes();
      
        var    status = treeObj.getNodes().checked;
        
        var nodes = treeObj.transformToArray(treeObj.getNodes()); 
    
        $.each(nodes1, function(i, item){
     
//                 nodeList.push(item.id);
                console.log(item.checked);
       
        });
        
        treeObj.updateNode();
        

             
    }

all these methods have been tried, but none of them work. Who knows what to do?

Mar.16,2021

getSelectedNodes, gets all selected nodes

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e3c83b-433eb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e3c83b-433eb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?