ace admin 左侧菜单定位
来源:互联网 发布:windows图形界面编程 编辑:程序博客网 时间:2024/04/28 17:13
不知道怎么定位,左侧菜单,于是自己写了段JS通过URL来控制,如下:
<script>
var pathname = window.location.pathname;
$("li a").each(function() {
varhref = $(this).attr("href");
if(pathname == href){
$(this).parents("ul").parent("li").addClass("active");
$(this).parent("li").addClass("active");
}
});
</script>
1 0
- ace admin 左侧菜单定位
- ace bootstrap后台框架-左侧菜单
- ace admin
- ace admin
- 左侧菜单
- [Extjs6]浅谈对admin-dashboard模板左侧菜单树的修改
- Ace - Responsive Admin Template
- Ace - Responsive Admin Template
- Ace - Responsive Admin Template
- ace-admin图标使用
- ace admin java 后台源码
- 左侧导航菜单
- Prototype 左侧菜单
- 左侧栏显示菜单!!
- 后台管理菜单(左侧)
- horizon 左侧菜单加载
- jQuery左侧菜单效果
- 左侧树状菜单代码
- Educational Codeforces Round 5 C.The Labyrinth(dfs+并查集)
- IOS开发中有用的第三方库
- 基于无连接的UDP程序设计
- CentOS6.5下一键式创建VPN服务器
- 15.View the Exhibit and examine the data in the CUSTOMERS table.
- ace admin 左侧菜单定位
- 图像的滤波
- Web开发者的福利 30段超实用CSS代码笔记
- 【游戏引擎】win7配置安装firefly
- android 不能在子线程中更新ui的讨论和分析
- spring @component的作用
- 深入理解值传递和引用传递
- Android基于Bmob群聊功能的实现
- CC2541之SimpleBLEPeripheral程序流程分析 -- 01.启动和事件轮询