Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pearone committed Jan 2, 2024
1 parent d0cfa19 commit 18f148b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
12 changes: 1 addition & 11 deletions packages/event/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,7 @@

这是一个 js 的方法库,提供了一些基础的 js 方法。

## Feature
| 方法 | 作用 |
| --- | --- |
| formatFloatNumber | 格式化十进制四舍五入保留小数位 |
| addEvent、removeEvent | 兼容浏览器的 event 事件绑定 |
| matchesSelector | 判断当前元素是否是目标 class |
| matchesSelectorAndParentsTo | 找到从开始元素一直找到结束元素是否有目标 class |
| LocalStorage | 封装localstorage方法 |
| Events | 订阅发布 |
| genAutoIdInit、genAutoId | 自增涨触发器 |
| genAutoIdString | 获取一个永不重复的字符串 |
[utils方法]("./docs/utils.md")

| 颜色 | 作用 |
| --- | --- |
Expand Down
Empty file added packages/event/docs/color.md
Empty file.
Empty file added packages/event/docs/dag.md
Empty file.
Empty file.
Empty file added packages/event/docs/url.md
Empty file.
11 changes: 11 additions & 0 deletions packages/event/docs/utils.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Feature
| 方法 | 作用 |
| --- | --- |
| formatFloatNumber | 格式化十进制四舍五入保留小数位 |
| addEvent、removeEvent | 兼容浏览器的 event 事件绑定 |
| matchesSelector | 判断当前元素是否是目标 class |
| matchesSelectorAndParentsTo | 找到从开始元素一直找到结束元素是否有目标 class |
| LocalStorage | 封装localstorage方法 |
| Events | 订阅发布 |
| genAutoIdInit、genAutoId | 自增涨触发器 |
| genAutoIdString | 获取一个永不重复的字符串 |

0 comments on commit 18f148b

Please sign in to comment.