Skip to content

Commit

Permalink
Docs: 2.2.11 Version.
Browse files Browse the repository at this point in the history
  • Loading branch information
pandaoh committed May 10, 2024
1 parent bcdac3b commit 7c17da3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Dom/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @Author: HxB
* @Date: 2022-04-26 15:37:27
* @LastEditors: DoubleAm
* @LastEditTime: 2024-05-10 17:28:20
* @LastEditTime: 2024-05-10 17:33:08
* @Description: 利用 dom 的一些函数
* @FilePath: \js-xxx\src\Dom\index.ts
*/
Expand Down Expand Up @@ -1216,7 +1216,7 @@ export function createClickLogListener(callback?: any): any {
}

/**
* 创建全局 change 事件埋点与回调,也可使用 `emitEvent` 主动触发。
* 创建全局 change 事件埋点与回调
* @example
* const cancel = createScrollLogListener(document.querySelector('.demo-scroll-dom'), (event, eventKey, data) => console.log({ event, eventKey, data })); /// 页面加载完成后创建监听器,取消监听器 cancel(); 。
* <div data-scroll={JSON.stringify({ logKey: 'example-scroll-X' })}>{...X 滚动埋点元素...}</div> /// 滚动埋点元素
Expand Down

0 comments on commit 7c17da3

Please sign in to comment.