jQuery parent > child 选择器

jQuery 教程 · 2019-03-10 10:11:28

实例

选取 <div> 元素的直接子元素的 <span> 元素:

$("div > span")

定义和用法

("parent > child") 选择器选取指定元素的直接子元素的所有元素。

语法

("parent > child")

参数 描述
parent 必需。规定要选取的父元素。
child 必需。规定要选取的直接子元素(属于指定的父元素)。

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

查看所有标签

An Introduction to Genetic Algorithms

An Introduction to Genetic Algorithms

Melanie Mitchell / MIT Press / 1998-2-6 / USD 45.00

Genetic algorithms have been used in science and engineering as adaptive algorithms for solving practical problems and as computational models of natural evolutionary systems. This brief, accessible i......一起来看看 《An Introduction to Genetic Algorithms》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

URL 编码/解码
URL 编码/解码

URL 编码/解码

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具