mcguu_toast

功能描述

四种toast对话框

依赖的插件

快速使用

    本插件是jquery的toast弹窗功能。
    如果想要实现本功能,则只需在按钮或者div的点击事件中执行toast即可。
    例如有一个按钮id为.ts1,则调用方法为:
    $("#ts1").click(function(){
    $.toast({
    heading: 'Welcome to Monster admin',
    text: 'Use the predefined ones, or specify a custom position object.',
    position: 'top-right',
    loaderBg:'#ff6849',
    icon: 'info',
    hideAfter: 3000, 
    stack: 6
    });
    })
    其中的参数:heading为头部的信息,text为信息的b文本,position为弹窗的位置,loaderBg为弹窗的背景颜色
    ,icon为弹窗类型,分为:info,success,warning,error。分别表现为颜色和背景颜色的不同。
    hideAfter为多久后自动消失,单位是ms,本例中也就是3000毫秒后自动消失。

特别说明

  1. 联系信息:QQ-549341762
是否仍需要帮助? 请保持联络!
最后更新于 2024/04/24