-
Notifications
You must be signed in to change notification settings - Fork 0
/
actionSheet.html
37 lines (37 loc) · 1.01 KB
/
actionSheet.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
35
36
37
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,initial-scale=1.0,width=device-width"/>
<title>actionSheet</title>
<link rel="stylesheet" href="css/actionSheet.css"/>
</head>
<body>
<div id="mainz" onclick="slideTest()">点击slide</div>
</body>
<script src="http://cdnjs.gtimg.com/cdnjs/libs/jquery/2.1.1-rc2/jquery.min.js"></script>
<script src="js/actionSheet.js"></script>
<script>
function slideTest(){
$.myActionSheet({
//title:'测试',
//speed:'500',
//y:100,
btns:[
{
name:'btns1',
click:function(){
alert('btn1')
}
},
{
name:'btns2',
click:function(){
alert('btn2')
}
}
]
});
}
</script>
</html>