46 lines
1.4 KiB
HTML
46 lines
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>okLayx</title>
|
|
<link href="layx.min.css" rel="stylesheet" type="text/css"/>
|
|
</head>
|
|
<body>
|
|
<button id="notice">Info</button>
|
|
<button id="notice2">Success</button>
|
|
<button id="notice3">Warning</button>
|
|
<button id="notice4">Error</button>
|
|
|
|
<script src="layx.min.js"></script>
|
|
<script>
|
|
document.getElementById("notice").onclick = function () {
|
|
layx.notice({
|
|
title: '消息提示',
|
|
message: '我是消息提示消息提示消息提示消息提示'
|
|
});
|
|
}
|
|
document.getElementById("notice2").onclick = function () {
|
|
layx.notice({
|
|
title: '成功提示',
|
|
type: 'success',
|
|
message: '我是消息提示消息提示消息提示消息提示'
|
|
});
|
|
}
|
|
document.getElementById("notice3").onclick = function () {
|
|
layx.notice({
|
|
title: '警告提示',
|
|
type: 'warning',
|
|
message: '我是消息提示消息提示消息提示消息提示'
|
|
});
|
|
}
|
|
document.getElementById("notice4").onclick = function () {
|
|
layx.notice({
|
|
title: '错误提示',
|
|
type: 'error',
|
|
message: '我是消息提示消息提示消息提示消息提示'
|
|
});
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|