摘要:
有时,我们不仅要从服务器端读取树形结构的数据,还会从本地读取,下面介绍如何从本地变量读取树形数据。首先,你需要将本地的数据转换成下面这种格式。var children= [{ text : 'node1' , leaf : false, children : [{ text : 'child1' , leaf : false , children : [{ text : 'child2', leaf : true }] },{ text : 'child3'... 阅读全文