Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "api-toast", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
用法: | ||
npm i --save-dev api-toast | ||
在项目主文件(如main.js)中引入: | ||
然后在项目主文件(如main.js)中引入: | ||
import api from "api-toast"; | ||
window.api=api; | ||
大功告成!任何地方可以使用语法: | ||
大功告成!任何地方可以使用语法: | ||
api.toast("message",3000);弹出仿APP的提示信息。 | ||
PS:webpack必须配置有css-loader跟style-loader。 |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3665
15