jQuery first() 方法

jQuery 教程 · 2019-03-28 06:58:25

实例

选取第一个 <div> 元素内的第一个 <p> 元素:

$("div p").first()

定义和用法

first() 方法返回被选元素的第一个元素。

提示:如需返回最后一个元素,请使用 last() 方法。

语法

$(selector).first()

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

查看所有标签

The Haskell School of Music

The Haskell School of Music

Paul Hudak、Donya Quick / Cambridge University Press / 2018-10-4 / GBP 42.99

This book teaches functional programming through creative applications in music and sound synthesis. Readers will learn the Haskell programming language and explore numerous ways to create music and d......一起来看看 《The Haskell School of Music》 这本书的介绍吧!

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

在线压缩/解压 JS 代码

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

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

HSV CMYK互换工具