layui的消息通知插件message弹出效果代码

代码语言:html

所属分类:弹出层

代码描述:layui的消息通知插件message弹出效果代码

代码标签: layui 消息 通知 弹出

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css">
    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/js/layui/css/layui.css">
</head>

<body>
    <input type="button" value="居中成功" on-event="cSuccess">
    <input type="button" value="居中失败" on-event="cerror">
    <input type="button" value="居中提示" on-event="cinfo">
    <input type="button" value="居中警告" on-event="cwarning">
    <input type="button" value="右侧提示" on-event="rinfo">
    <input type="button" value="右侧成功" on-event="rsuccess">
    <input type="button" value="只有标题的提示" on-event="rtitle">
</body>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/layui/layui.all.js"></script>
<script>
    layui.config({
        base: '//repo.bfw.wiki/bfwrepo/js/layui/lay/modules/',
      
    }).extend({
        message: 'message'
    }).use(['message'], function () {
        console.log(layui.message);
        let msg = layui.message;

        msg.success({ cont.........完整代码请登录后点击上方下载按钮下载查看

网友评论0