-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalipaysApp.html
73 lines (58 loc) · 1.79 KB
/
alipaysApp.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!-- <!DOCTYPE html>
<html>
<body>
<h1>跳转支付宝小程序</h1>
<input type="button" value="爱南宁支付宝小程序" onclick="newDoc()">
<br>
<br>
<br>
<br>
<input type="button" value="JS交互" onclick="jsToAPP()">
<script>
function newDoc() {
window.location.assign("alipays://platformapi/startapp?appId=2018071260580683")
}
function jsToAPP() {
var params = {'url': 'Call APP method "CallApp()"'}
window.webkit.messageHandlers.CallApp.postMessage(params);
}
</script>
</body>
<body>
onload="parent".location="weixin://dl/business/?t=xnmnXy3vKBj"
</body>
</html>
-->
<!DOCTYPE html>
<html>
<head>
<title>几秒后跳转.html</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
</head>
<body bgcolor="#33ccff">
<script type="text/javascript">
function delayURL(url) {
var delay = document.getElementById("time").innerHTML;
//最后的innerHTML不能丢,否则delay为一个对象
if (delay > 0) {
delay--;
document.getElementById("time").innerHTML = delay;
} else {
window.top.location.href = url;
}
setTimeout("delayURL('" + url + "')", 1000);
//此处1000毫秒即每一秒跳转一次
}
</script>
<div style="text-align: center; margin-top: 200px;">
<span id="time" style="background: red">2</span>秒钟之后自动跳转,如果不跳转,请点击下面链接
<a href="weixin://dl/business/?t=xnmnXy3vKBj">点击链接快速跳转</a>
</div>
<script type="text/javascript">
delayURL("weixin://dl/business/?t=xnmnXy3vKBj");
</script>
</body>
</html>