如何在多级推送菜单中设置链接值 [英] How to set link value in Multi-level push menu
本文介绍了如何在多级推送菜单中设置链接值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用javascript进行多级推送菜单
我正在尝试添加以下链接值:
var arrMenu = [{
title:' 设置',
id:' menuID',
icon:' fa-users' ,
项:[{
name:' 用户,
id:' itemID',
icon:' fa-users',
link:' #',
项目:[{
title:' 我们ers',
图标:' fa-users',
项:[
{
name:' 添加新用户',
link:' #'
},
{
名称:' 更改密码',
link:' #'
},
{
name: ' 重置密码',
link:' #'
}
]
}]
},
如何设置链接(链接:'#')以将用户重定向到我的目标链接。
解决方案
写点类似
link: www.codeproject.com跨度>
I'm using javascript for Multi-level push menu
I'm trying to add link value in the following:
var arrMenu = [{
title: 'Settings',
id: 'menuID',
icon: 'fa-users',
items: [{
name: 'Users',
id: 'itemID',
icon: 'fa-users',
link: '#',
items: [{
title: 'Users',
icon: 'fa-users',
items: [
{
name: 'Add New User',
link: '#'
},
{
name: 'Change Password',
link: '#'
},
{
name: 'Reset Password',
link: '#'
}
]
}]
},
How can I set link ( link: '#') to redirect user to my target Link.
解决方案
Write something like
link: "www.codeproject.com"
这篇关于如何在多级推送菜单中设置链接值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文