UNPKG

@mdui/jq

Version:

拥有和 jQuery 相似 API 的轻量级 JavaScript 工具库

22 lines (21 loc) 686 B
import './next.js'; import type { Selector } from '../shared/helper.js'; declare module '../shared/core.js' { interface JQ<T = HTMLElement> { /** * 获取当前集合中,每个元素后面的所有匹配的同辈元素的集合 * @param selector CSS 选择器。指定该参数时,将仅返回和该参数匹配的元素的集合 * @example ```js // 获取 .box 元素后面的所有同辈元素 $('.box').nextAll() ``` * @example ```js // 获取 .box 元素后面的所有含 .selected 的同辈元素 $('.box').nextAll('.selected') ``` */ nextAll(selector?: Selector): this; } }