jQuery element ~ siblings 选择器
jQuery 教程
· 2019-03-10 10:58:52
实例
选取 <div> 元素同级的所有 <p> 元素:
$("div ~ p")
定义和用法
("element ~ siblings") 选择器选取指定元素 "element" 同级的所有元素。
比如:
- $("div ~ p") - 选取 <div> 元素同级的所有 <p> 元素。
注意:指定的两个元素共享相同的父元素。
语法
("element ~ siblings")
| 参数 | 描述 |
|---|---|
| element | 必需。任何有效的 jQuery 选择器。 |
| siblings | 必需。规定 element 参数的同级。 |
点击查看所有 jQuery 教程 文章: https://www.codercto.com/courses/l/35.html
Algorithms and Theory of Computation Handbook
Mikhail J. Atallah (Editor) / CRC-Press / 1998-09-30 / USD 94.95
Book Description This comprehensive compendium of algorithms and data structures covers many theoretical issues from a practical perspective. Chapters include information on finite precision issues......一起来看看 《Algorithms and Theory of Computation Handbook》 这本书的介绍吧!