leoutil
Version:
80 lines (55 loc) • 1.62 kB
Markdown
# [leoutil](https://github.com/leochan2017/util)






公共工具库 leoutil
## :open_file_folder: 目录介绍
```
.
├── dist 编译产出代码
└── src 源代码目录
```
## :rocket: 快速开始
### 1. 引入本库
1.1 如果你是浏览器环境
```html
<script src="./dist/leoutil.min.js"></script>
```
1.2 如果你是 webpack 等环境
```shell
npm install leoutil --save
```
或者
```shell
yarn add leoutil
```
1.3 如果你是 requirejs 环境
```js
requirejs(['./dist/leoutil.min.js'], function (res) {
// xxx
})
```
### 2. 使用
```js
import leoutil from 'leoutil'
console.log(leoutil.isDD())
```
或者
```js
import { isDD } from 'leoutil'
console.log(isDD())
```
## :bookmark_tabs: AIP 文档
### leoutil.isDD()
返回当前是否钉钉环境; true: 是, false: 否
## :couple: 谁在使用
- [Landray](http://www.landray.com.cn)
## :see_no_evil: 相关链接
- [Github Pages](https://leochan2017.github.io/util/)
- [仓库地址](https://github.com/leochan2017/util)
- [NPM 主页](https://www.npmjs.com/package/leoutil)
- [yarn 主页](https://yarn.pm/leoutil)
- [钉钉开放平台](https://open-doc.dingtalk.com/)