3 Star 56 Fork 13

Yaohaixiao/dom.js

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
nextBy.js 546 Bytes
一键复制 编辑 原始数据 按行查看 历史
import getNextSiblingBy from './getNextSiblingBy'
/**
* 通过过滤器获取 DOM 元素匹配的后面的邻居元素节点
* ========================================================================
* @method nextBy
* @alias getNextSiblingBy
* @see https://developer.mozilla.org/zh-CN/docs/Web/API/Element/nextElementSibling
* @param {HTMLElement|Text} el
* @param {Function|String} filter
* @return {HTMLElement|null}
*/
const nextBy = (el, filter) => {
return getNextSiblingBy(el, filter)
}
export default nextBy
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/yaohaixiao/dom.js.git
git@gitee.com:yaohaixiao/dom.js.git
yaohaixiao
dom.js
dom.js
main

搜索帮助

Cb406eda 1850385 E526c682 1850385