jQuery1.3.2源码学习8:index 函数
发布时间:2018-10-12 10:41:13 所属栏目:传媒 来源:站长网
导读:// Determine the position of an element within // the matched set of elements 160 index: function( elem ) { // Locate the position of the desired element return jQuery .inArray( // If it receives a jQuery object, the first element is used
// Determine the position of an element within // the matched set of elements 160 index: function( elem ) { // Locate the position of the desired element return jQuery.inArray( // If it receives a jQuery object, the first element is used elem && elem.jquery ? elem[0] : elem , this ); }, 160 行的 index 函数用来返回元素在查询结果中的下标。下标从 0 开始,如果没有找到匹配的元素,那么返回 -1。 出处:博客园 (编辑:淳化站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- Zoom选择Oracle云基础设施支撑其核心在线会议服务
- 量子计算——密码学面临的重大挑战
- 小米10系列售价3999元起:靠技术立业的小米 正式冲击高端手
- 用 AI 解构未来,华米科技 6 月 15 日将召开首届 AI 创新大
- 全新Vuforia Spatial Toolbox加快机器和机器人空间增强现实
- 敢为天下先,人大金仓做数据库内核人才培训的先驱者
- Strategy Analytics:运营商是否应该将5G部署计划推迟至202
- NVIDIA以串流方式从AWS云端交付AR和VR
- 联想小新Pad Pro 12.6平板ZUI 13 OTA1灰度测验 优化系统音效
- jQuery1.3.2源码学习3-4:init 函数分析
站长推荐
热点阅读