请问如何遍历这样的数据
data = {
child:[{
child:[{
child:null,
title: '基本例子',
list: ['文艺', '博客', '摄影', '电影', '民谣', '旅行', '吉他']
}],
title: '基本例子',
list: ['文艺', '博客', '摄影', '电影', '民谣', '旅行', '吉他']
}],
title: '基本例子',
list: ['文艺', '博客', '摄影', '电影', '民谣', '旅行', '吉他']
};
<script type="text/html" id="idd_js">
</script>
<script type="text/html" id="list1">
</script>
小的自己研究了一下 发现是可以递归的 大概代码如上 代码不够完美希望大神给建议