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
PHP and MySQL Web Development
Luke Welling、Laura Thomson / Sams / July 25, 2007 / $49.99
Book Description PHP and MySQL Web Development teaches you to develop dynamic, secure, commerical Web sites. Using the same accessible, popular teaching style of the three previous editions, this b......一起来看看 《PHP and MySQL Web Development》 这本书的介绍吧!