jQuery MiniUI
标题:
关于导航框架1
[打印本页]
作者:
tianybr
时间:
2019-1-17 16:18:14
标题:
关于导航框架1
本帖最后由 tianybr 于 2019-1-17 16:19 编辑
导航框架1侧边栏是通过请求后台动态生成的。后台返回的数据内容字段和miniui的势力有点区别,这个应该怎么修改
数据如下
[
{
"
id
":
1
,
"
systemcode
":
"666"
,
"
menuname
":
"山东分公司"
,
"
ico
":
null
, "
orderno
":
1
,
"
menuidparent
":
"0"
,
"
dll
":
null
,
"
memo
":
null
,
"
modifyTime
":
"2019-01-08T11:04:55.000+0000"
,
"
inputcode1
":
null
,
"
inputcode2
":
null
,
"
type
":
"3"
,
"
children
":
[ { "id": 2, "systemcode": "666", "menuname": "是豆腐干士大夫", "ico": null, "orderno": 2, "menuidparent": "1", "dll": "/tyspwf_manage.html", "memo": null, "modifyTime": "2019-01-08T11:05:28.000+0000", "inputcode1": null, "inputcode2": null, "type": "3", "children": [], "systemId": null } ]
,
"
systemId
":
1
}
]
作者:
darren丶csl
时间:
2019-1-17 16:21:51
mini.arrayToTree
作者:
tianybr
时间:
2019-1-17 16:27:11
darren丶csl 发表于 2019-1-17 16:21
mini.arrayToTree
这个api有具体的使用方法吗
作者:
darren丶csl
时间:
2019-1-17 16:38:07
tianybr 发表于 2019-1-17 16:27
这个api有具体的使用方法吗
当时没找到,用console找到的
作者:
dforce
时间:
2019-1-17 16:57:52
这个我们需要树形数据,你这里由children带回子节点,已经是树形数据了,可以直接加载。
只不过你的数据里面的显示字段不是我们要求的text字段,这个你可以修改一下。
我们需要id和text数据,具体的你可以看一下这个menu的源代码,在frame\frame1\res\menu\menu.js内
欢迎光临 jQuery MiniUI (http://miniui.com/discuss/)
Powered by Discuz! X2