zoukankan      html  css  js  c++  java
  • toastr

    $(function(){
        //参数设置,若用默认值可以省略以下面代
        toastr.options = {
            "closeButton"false//是否显示关闭按钮
            "debug"false//是否使用debug模式
            "positionClass""toast-top-full-width",//弹出窗的位置
            "showDuration""300",//显示的动画时间
            "hideDuration""1000",//消失的动画时间
            "timeOut""5000"//展现时间
            "extendedTimeOut""1000",//加长展示时间
            "showEasing""swing",//显示时的动画缓冲方式
            "hideEasing""linear",//消失时的动画缓冲方式
            "showMethod""fadeIn",//显示时的动画方式
            "hideMethod""fadeOut" //消失时的动画方式
            };
     
            //成功提示绑定
            $("#success").click(function(){
            toastr.success("祝贺你成功了");
            })
             
            //信息提示绑定
            $("#info").click(function(){
            toastr.info("这是一个提示信息");
            })
             
            //敬告提示绑定
            $("#warning").click(function(){
            toastr.warning("警告你别来烦我了");
            })
             
            //错语提示绑定
            $("#error").click(function(){
            toastr.error("出现错误,请更改");
            })
             
            //清除窗口绑定
            $("#clear").click(function(){
            toastr.clear();
            })
        }) 
  • 相关阅读:
    发现pythonWin里面的一个地方挺别扭
    细节-质量-态度
    对于Borland出售IDE业务的一点感想
    ReView100遍?!
    代码生成原则Top10
    使用asp.net进行多关键字查询的例子
    代码生成FAQ(翻译)
    msdn中文上的几篇有用的sqlServer2000的文章
    RSS 阅读工具Omea Reader
    Ubuntu18.04 安装Postgresql12
  • 原文地址:https://www.cnblogs.com/zhangxiaolei521/p/5683662.html
Copyright © 2011-2022 走看看