-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
34 lines (33 loc) · 960 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<button style="margin:0 auto; background: #0099e3;color:#fff;">点击我</button>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<script src="dialogRight.js"></script>
<script>
$(function(){
$('button').on('click',function(e){
$.DialogRight.init({
title:'添加单位',
url:'https://www.baidu.com',
btns:['取消','确定'],
cancel:function(){
alert('我已取消')
},
commit:function(){
alert('发送成功')
}
})
})
})
</script>
</body>
</html>