Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 规范
- Host: GitHub
- URL: https://github.com/xiaojundebug/toast
- Owner: xiaojundebug
- License: mit
- Created: 2018-08-07T05:36:07.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-10T02:05:25.000Z (about 6 years ago)
- Last Synced: 2023-07-31T11:07:49.577Z (over 1 year ago)
- Topics: javascript, react, toast, vue
- Language: JavaScript
- Homepage:
- Size: 35.2 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```