添加类名:

document.getElementById('navBar').getElementsByClassName('mui-tab-item')[0].classList.add('mui-active');

删除类名:

document.getElementById('navBar').getElementsByClassName('mui-tab-item')[1].classList.remove('mui-active');

最新文章

  1. BroadcastReceiver之(手动代码注册广播)屏幕锁屏、解锁监听、开机自启
  2. Visual Studio Ultimate 2013 with Update 4
  3. Hibernate之:各种主键生成策略与配置详解
  4. linux 屏幕录像(recordmydesktop)
  5. HDU 1312 Red and Black DFS(深度优先搜索) 和 BFS(广度优先搜索)
  6. PHP实现无级递归分类(ThinkPHP框架)
  7. text-align:justify实现文本两端对齐布局,兼容IE
  8. 将string转化为char*的方法
  9. .net(C#)访问Oracle数据库的几种免安装组件的对比(转)
  10. BZOJ 1062
  11. 可选参数、命名参数、.NET的特殊类型、特性
  12. code force 401B. Game of Credit Cards
  13. windows server 2008 R2 禁用ipv6和隧道适配器
  14. SpringMVC中日期格式的转换
  15. 基于 CODING 的 Spring Boot 持续集成项目
  16. jenkins 配置
  17. MySql事务的隔离级别及作用
  18. np.unravel_index
  19. iTunes , iCloud 用吐了也没把照片给备份好
  20. IE9中input事件与异步事件连用会发生跨域问题

热门文章

  1. k8s通过configmap管理应用配置信息
  2. TS 数据流分析学习
  3. 记一次Laravel定时任务导致日志没有写入权限的坑
  4. [BZOJ2064]分裂 状压dp
  5. Visual Studio Code更改语言
  6. Codeforces 1023 C.Bracket Subsequence-STL(vector) (Codeforces Round #504 (rated, Div. 1 + Div. 2, based on VK Cup 2018 Fi)
  7. Python练习——同时安装python2 与 python 3如何选择不同解释器运行脚本
  8. NOIP2014飞扬的小鸟
  9. Column 1 of table 'xxx' cannot be converted from type 'varchar(33)' to type 'varchar(11)'
  10. n2n搭建手记-1-V1