jQuery1.3.2源码学习8:index 函数
发布时间:2018-09-09 17:17:08 所属栏目:传媒 来源:站长网
导读:// 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。 出处:博客园 (编辑:揭阳站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- Gartner:2021年中国IT支出预计将增长7.2%,2021年全球IT支
- 光峰科技薄连明:上下游携手预防“灰犀牛”,与合作伙伴共克
- 亮相世界智能大会|紫光云诠释云智融合实践之路
- Gartner:新冠肺炎疫情期间AI帮助政府和医疗机构CIO改善决策
- Nvidia收购数据中心网络初创公司Cumulus Networks
- Gartner预测:2021年全球公有云最终用户支出将增长18%
- 杰和GDSM智慧商显管理平台亮相人工智能专题研讨会
- 杀软评测“双料冠军”的幕后英雄:腾讯“毒歌”反病毒系统
- 从边缘到云端的网络新体验 Aruba CX下一代交换平台重磅发布
- IDC:2020年第三季度公有云IT基础设施收入保持强劲增长
