Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xiaojundebug/toast

一个 toast 弹框插件,遵守 umd 规范
https://github.com/xiaojundebug/toast

javascript react toast vue

Last synced: 21 days ago
JSON representation

一个 toast 弹框插件,遵守 umd 规范

Awesome Lists containing this project

README

        

# toast

一个 toast 弹框插件,遵守 umd 规范

## 直接用\引入

```javascript
<script src="./toast/dist/toast.min.js" />
```

## 模块化引入

```javascript
// es6
import toast from './toast';
// commonjs
const toast = require('./toast');
```

## 使用方式

```js
toast('hi~', 3000); // default 3000
```

## 打包构建

```bash
yarn && yarn build
```