<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>跳转APP</title>
</head>
<body>
<script type="text/javascript">
function copyUrl2()
{
var Url2=document.getElementById("biao1");
Url2.select();
document.execCommand("Copy");
go();
}
</script>
<textarea cols="20" rows="10" id="biao1" >用户定义的代码区域</textarea>
<input type="button" onClick="copyUrl2()" value="点击前往淘宝" />
<a href="https://t.asczwa.com/taobao?backurl=打开淘宝需要显示的页面链接">淘宝</a>
<script>
function go(){
setTimeout(function(){
console.log(1);
window.location.href="taobao://m.taobao.com";
window.location.href="taobao://m.taobao.com"; //为什么要加两遍我下面会说到
},1000)
}
// go();
</script>
</body>
</html>