编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
jQuery API 开发手册

返回值:jQuery:last()

V1.0概述

获取最后个元素

示例

描述:

获取匹配的最后个元素

HTML 代码:
<ul>
    <li>list item 1</li>
    <li>list item 2</li>
    <li>list item 3</li>
    <li>list item 4</li>
    <li>list item 5</li>
</ul>
jQuery 代码:
$('li:last')
结果:
[ <li>list item 5</li> ]
相关文章
jquery mobile collapsible set动态创建显示的方法jquery easyui filebox 文件框 jquery easyui progressbar 进度条 jquery easyui datebox 日期输入框 jquery easyui editable datagrid 可编辑表格 animated jquerycallbacks.add callbacks jqueryclearqueue queuename jquerydeferred.notifywith context args jquery disabled jqueryevent.ispropagationstopped jquerylast jquery last child jquery last jqueryjquery last jquery last childjquery last of typejquery lastjquery nth last childjquery nth last of type
关注编程学问公众号
编程学问网 湘ICP备20001732号