我有一个像
var data = [
{
"parent": "Home",
"child": [
]
},
{"parent": "Services",
"child": [
{"title":"Infrastruture"},
{"title":"Development"}
]
},
{
"parent": "Sector",
"child": [
{"title":"Recruitment Consultant"},
{"title":"Change Management"},
{"title":"Industrial Relations"}
]
},
]
我想针对这个 json 制作一个水平菜单。我是新的 json 对象。那么我该怎么做呢?