jQuery first() 方法

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

实例

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

$("div p").first()

定义和用法

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

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

语法

$(selector).first()

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

查看所有标签

Spark

Spark

Bill Chambers、Matei Zaharia / O′Reilly / 2017-10-31 / GBP 39.99

Learn how to use, deploy, and maintain Apache Spark with this comprehensive guide, written by the creators of the open-source cluster-computing framework. With an emphasis on improvements and new feat......一起来看看 《Spark》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

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

UNIX 时间戳转换