时间:2021-07-01 10:21:17 帮助过:57人阅读
比如:
{ "顶层菜单1":[ { "domain":"顶层菜单1", "runType":"background", "moduleName":"子菜单", "memo":"描述", "srcFile":"", "depends":[] } ], "顶层菜单2":[ { "domain":"顶层菜单2", "runType":"background", "moduleName":"子菜单1", "memo":"描述", "srcFile":"", "depends":[] }, { "domain":"顶层菜单2", "runType":"background", "moduleName":"子菜单2", "memo":"描述", "srcFile":"", "depends":[] } ], "顶层菜单3":[]}
直接贴代码吧…
dataObject = JSON.parse(data);var html = '