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
Programming PHP
Rasmus Lerdorf、Kevin Tatroe、Peter MacIntyre / O'Reilly Media / 2006-5-5 / USD 39.99
Programming PHP, 2nd Edition, is the authoritative guide to PHP 5 and is filled with the unique knowledge of the creator of PHP (Rasmus Lerdorf) and other PHP experts. When it comes to creating websit......一起来看看 《Programming PHP》 这本书的介绍吧!