jQuery :last 选择器
jQuery 教程
· 2019-03-10 06:58:17
实例
选取最后一个 <p> 元素:
$("p:last")
定义和用法
:last 选择器选取最后一个元素。
注意:这个选择器只用于选取单个元素。使用 :last-child 选择器选取多个元素(每个父元素一个)。
最常见的用法:与其他选择器一起使用,选取指定组合中的最后一个元素(如上面的实例)。
提示:如需选取指定组合中的第一个元素,请使用 :first 选择器。
语法
$(":last")
点击查看所有 jQuery 教程 文章: https://www.codercto.com/courses/l/35.html
New Dark Age
James Bridle / Verso Books / 2018-7-17 / GBP 16.99
As the world around us increases in technological complexity, our understanding of it diminishes. Underlying this trend is a single idea: the belief that our existence is understandable through comput......一起来看看 《New Dark Age》 这本书的介绍吧!