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

返回值:ArrayjQuery.unique(array)

概述

删除数组中重复元素。只处理删除DOM元素数组,而不能处理字符串或者数字数组。

参数

arrayArrayV1.1.3

待处理数组。

示例

描述:

删除重复 div 标签。

jQuery 代码:
$.unique(document.getElementsByTagName("div"));
结果:
[<div>, <div>, ...]
相关文章
jquery easyui datagrid单元格鼠标移动弹出提示框tooltip的使用方法jquery easyui datetimespinner 日期时间微调框 jquery.grep array callback invert jqueryjquery.inarray value array fromindex jqueryjquery.unique array jqueryjquery $.grep array fn invert jquery $.unique array jquery $.uniquesort array php arrayiterator check whether array contains more entriesphp stack converts the stack to an arrayphp cubrid mysql 兼容性函数 return a numerical array with the values of the current rowphp php 选项/信息 函数 返回所有编译并加载模块名的 arrayphp mailparse 函数 returns an array of mime section names in the supplied messagephp oci8 函数 returns the next row from a query as a numeric arrayphp sqlite 函数 fetches all rows from a result set as an array of arraysphp imagick gets the width and height as an associative arrayphp judy search for the next absent index in the judy arrayphp mysql xdevapi collectionmodify insert element into an array fieldphp solrinputdocument adds an array of child documentsphp splfixedarray gets the size of the array
关注编程学问公众号
编程学问网 湘ICP备20001732号