-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
41 lines (33 loc) · 1.13 KB
/
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
35
36
37
38
39
40
41
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="http://g.alicdn.com/dingding/dingtalk-jsapi/2.0.57/dingtalk.open.js"></script>
<!-- <script src="//g.alicdn.com/dingding/dingtalk-jsapi/2.0.8/dingtalk.open.js"></script> -->
<script type="text/javascript">
// import * as dd from 'dingtalk-jsapi';
dd.ready(function(){
dd.device.notification.confirm({
message: "你爱我吗",
title: "提示",
buttonLabels: ['爱', '不爱'],
onSuccess : function(result) {
//onSuccess将在点击button之后回调
/*
{
buttonIndex: 0 //被点击按钮的索引值,Number类型,从0开始
}
*/
},
onFail : function(err) {}
});
});
</script>
</head>
<body>
你大爷
</body>
</html>