jQuery parent > child 选择器
jQuery 教程
· 2019-03-10 10:11:28
实例
选取 <div> 元素的直接子元素的 <span> 元素:
$("div > span")
定义和用法
("parent > child") 选择器选取指定元素的直接子元素的所有元素。
语法
("parent > child")
参数 | 描述 |
---|---|
parent | 必需。规定要选取的父元素。 |
child | 必需。规定要选取的直接子元素(属于指定的父元素)。 |
点击查看所有 jQuery 教程 文章: https://www.codercto.com/courses/l/35.html
Dive Into Python
Mark Pilgrim / Apress / 2004-11-5 / GBP 31.49
Python is a new and innovative scripting language. It is set to replace Perl as the programming language of choice for shell scripters, and for serious application developers who want a feature-rich, ......一起来看看 《Dive Into Python》 这本书的介绍吧!