Grundlegende Verwendung von LayUI

Layui offizielle Dokumentation: https://www.layuion.com/doc/modules/layer.html 

Einführung von LayUI online:

<link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/layui/2.6.8/css/layui.css">
<script src="https://cdn.bootcdn.net/ajax/libs/layui/2.6.8/layui.js"></script>

benutzen:

<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/layui/2.6.8/css/layui.css">
<script src="https://cdn.bootcdn.net/ajax/libs/layui/2.6.8/layui.js"></script>
<script>
    function test() {
        layer.open({
            title: 'hello',
            content: '大家好,这是LayUI弹窗'
        });
    }
</script>

<body>
    <div>
        <button onclick="test()">test</button>
    </div>

</body>

</html>

Ich denke du magst

Origin blog.csdn.net/qq_40323256/article/details/124076921
Empfohlen
Rangfolge