1 Star 0 Fork 0

朱荣桓/notify

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

功能说明:layui消息通知插件 6种样式,可手动关闭层,支持回调方法,可设置弹出位置,兼容主流浏览器,兼容至ie9 (ie没有svg动画) 输入图片说明

1、6种调用方法:

普通:info

警告:warning

成功:success

错误:error

加载:loading

关闭:destroyAll

2、layui使用方法

layui.use(['notify'],function(){
     var notify=layui.notify;
     notify.info("自定义消息")
})

基本用法

参数说明:对参数没有顺序要求,会根据参数的数据类型进行解析

        msg: "", //文字内容
        position: 'topCenter', // 弹出位置bottomRight, bottomLeft, topRight, topLeft, topCenter, bottomCenter, center
        duration: 2000, //默认2秒关闭
        showClose: true //显示关闭按钮
    1、notify.info("提示消息");
    2、notify.warning("警告消息");
    3、notify.success("操作成功");
    4、notify.loading("加载中");
    5、notify.error("操作失败");
    6、notify.error("不显示关闭按钮", false);
    7、notify.info("提示消息", function () {
        alert("回调成功");
    });
    8、notify.destroyAll(); 全部关闭
    9、notify.info("位置显示", "topLeft"); 参数:topLeft、topCenter、topRight、bottomLeft、bottomCenter、bottomRight、center

演示地址:https://www.17780.cn/notify/demo.html

空文件

简介

notify 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhuronghuan/notify.git
git@gitee.com:zhuronghuan/notify.git
zhuronghuan
notify
notify
master

搜索帮助

Cb406eda 1850385 E526c682 1850385