var dataarray=[]; function datalist(data) { for(var i=0;len=data.length,i<len;i++){ if(data[i]["children"]!=null && data[i]["children"]!="null" && data[i]["children"].length>0){ datalist(data[i]["children"]); }else{ dataarray.push(data[i]["data"]); } } }
【Fancytree】------- Fancytree 点击列表转化数组示例代码
最新推荐文章于 2021-03-30 11:11:52 发布