开发者社区> 问答> 正文

json数据转成树结构的问题

json

求大神指导如何在js端把如下json数据改造成一个树结构在网页中显示出来。
json=[{"children":[{"children":[],"ebtype":"传感器模块","ebuuid":"b9d81030","href":"nodeinfo.j?nodeaddr=-17960","hrefTarget":"_self","ieee":"124B000207EABB","leaf":true,"lqi":"33","mbtype":"电源板","nodeaddr":"-17960","nodeaddr1":"47576","panid":"1231","rssi":"-69"}],"ebtype":"传感器模块","ebuuid":null,"href":"nodeinfo.j?nodeaddr=0","hrefTarget":"_self","ieee":"124B0001A8E7F7","leaf":false,"lqi":"0","mbtype":"智能板","nodeaddr":"0","nodeaddr1":"0","panid":"1231","rssi":"0"}]

展开
收起
杨冬芳 2016-07-07 16:02:59 2704 0
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
阿里云MaxCompute百问百答 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载