add:okLayx demo
parent
78e7b0093c
commit
f4f5962c37
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,45 @@
|
|||
<!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>
|
||||
Loading…
Reference in New Issue