Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wjw-gavin committed Aug 31, 2023
1 parent de03c75 commit 908e234
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ console.log(moneyFormat(money, 2))
# 使用文档

1. [isX](#isx)
1. [clipboard](#clipboard)
1. [cloneDeep](#clonedeep)
1. [debounce](#debounce)
1. [delay](#delay)
Expand Down Expand Up @@ -111,6 +112,22 @@ isFunction // 是否是函数
isTrue // 是否是布尔 true 或者是字符 'true'
isURL // 是否是 URL
inBrowser // 是否在浏览器
```
### clipboard
```js
/**
* @description 剪贴板,返回一个 Promise
*/

// 使用
import { clipboard } from 'native-lodash'

// 必须由用户主动触发
const handleClipboard = async () => {
await clipboard()
// something...
}

```
### cloneDeep
```js
Expand All @@ -132,7 +149,6 @@ obj === cloneObj // => true
const cloneDeepObj = cloneDeep(obj)
cloneDeepObj.name = 'wjw'
obj === cloneDeepObj // => false

```
### debounce
```js
Expand Down

0 comments on commit 908e234

Please sign in to comment.