1  addClass(classname) 添加类

<script type="text/javascript">

$("input").click(function() {

$("div").addClass("abcd")

; });

</script>

2 removeClass(classname) 删除类

$("div").removeClass("abcd");

3 toggleClass:切换类,如果原来没有类就添加,如果原来有类就删掉,在原本样式与新样式之间切换

最新文章

  1. 开发该选择Blocks还是Delegates
  2. ZBrush中的动态网格该怎么进行运用
  3. maven install时报错Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
  4. Ajax Step By Step5
  5. linux 2.6 驱动笔记(三)
  6. 【leetcode】 Unique Binary Search Trees (middle)☆
  7. i++和++i的深入理解
  8. Native App执行JS
  9. [读]剑指offer
  10. js 控制DIV 预览打印
  11. An Attempt to Understand Boosting Algorithm(s)
  12. 上传图片组件封装 element ui
  13. Unresolved externa Round
  14. linux的tar命令
  15. 【转】python 中NumPy和Pandas工具包中的函数使用笔记(方便自己查找)
  16. configparse 模块
  17. Python pandas快速入门
  18. C# json解析字符串总是多出双引号
  19. ansible 远程以普通用户执行命令
  20. MSTECHLNK

热门文章

  1. UNIX时间转换ASP代码.txt
  2. Bash 如何取得当前正在执行的脚本的绝对路径?
  3. Spring MVC 的概念1
  4. ubuntu 下jrtplib编译
  5. echarts在vue里面使用,以及基础配置。
  6. 00068_Date类
  7. BA--关于干节点和湿节点
  8. static final常量变量的正确书写规范
  9. [Tailwind] Abstract Utility Classes to BEM Components in Tailwind
  10. Spring整合TimerTask实现定时任务调度