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

返回值:jQuery:first

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:first');
结果:
[ <li>list item 1</li> ]
相关文章
jquery easyui parser 解析器 jquery easyui pivotgrid 数据分析表格 jquery easyui layout 布局 jquery easyui numberspinner 数字微调 add expr|ele|html|obj con jquery attribute*=value jquerycallbacks.fired jquery contains text jqueryfirst jquery first child jquery first jqueryjquery.merge first second jqueryjquery first jquery first childjquery first of typejquery firstjquery $.merge first second php grapheme 函数 find position in grapheme units of first occurrence of a stringphp intlbreakiterator set the iterator position to the first boundary before an offsetphp splobjectstorage rewind the iterator to the first storage element
关注编程学问公众号
编程学问网 湘ICP备20001732号