0.0.4 • Published 1 year ago

@wants/utils v0.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

描述: 一些常用的方法

说明:

1:warning! 很多方法都是复制出来的,没有经过测试!
2:部分需要 document 对象的,需要传过去使用,不然拿不到该对象,有没有更好的办法?

使用方法:

引入:

```js
import utils from '@zbj/utils'
// 或者按需引入
import { debounce } from '@zbj/utils'
```

```js
// 或者引入其他方法: 
import cookies from '@zbj/utils/src/cookies'
```

使用:

```js
utils.handleSize(123123123)
utils.copyTextByInput(document, str)

// 按需引入使用:
debounce(func, 200)

cookies(document).setCookie('lemontestcookie', 1111)
```
0.0.3

1 year ago

0.0.4

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago