testDialoger.html
917 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, viewport-fit=cover">
<meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge">
<title>Title</title>
</head>
<body>
<a onclick="fun()">asdasd</a>
<a onclick="fun1()">11111</a>
<a onclick="to()">aaaa</a>
<a onclick="to1()">bbb</a>
<script src="../build/sdk.js"></script>
<script>
function fun() {
window.yo_sdk.tip({
title: '领取成功',
content: 'asdasd',
close: true
});
}
function fun1() {
window.yo_sdk.tip({
title: '1111',
content: '111',
close: false
});
}
function to() {
window.yo_sdk.toast('领取成功')
}
function to1() {
window.yo_sdk.toast('asdad')
}
</script>
</body>
</html>