jQuery 多个类 选择器

jQuery 教程 · 2019-03-10 05:56:44

实例

选取 class 为 "intro"、"demo" 或 "end" 的所有元素:

$(".intro,.demo,.end")

定义和用法

.class 选择器可用于选取多个 class。

注意:用逗号分隔每个 class。

注意:不要使用数字开头的 class 属性!在某些浏览器中可能出问题。

语法

$(".class1,.class2,.class3,...")

参数 描述
class 必需。规定要选取的元素的 class。

点击查看所有 jQuery 教程 文章: https://www.codercto.com/courses/l/35.html

查看所有标签

Head First 设计模式(中文版)

Head First 设计模式(中文版)

弗里曼 / O'Reilly Taiwan公司 / 中国电力出版社 / 2007-9 / 98.00元

《Head First设计模式》(中文版)共有14章,每章都介绍了几个设计模式,完整地涵盖了四人组版本全部23个设计模式。前言先介绍这本书的用法;第1章到第11章陆续介绍的设计模式为Strategy、Observer、Decorator、Abstract Factory、Factory Method、Singleton,Command、Adapter、Facade、TemplateMethod、I......一起来看看 《Head First 设计模式(中文版)》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换