Commit 2bd5a3fa by wang

update

parent ceb1ec23
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<p>111111111111111111111111111</p>
<div>
<input type="text" id="tid" name="tid" value="wdeq1206" readonly="readonly">
<p class="btn" onclick="copyUrl()">一键复制并打开微信</p>
</div>
<script>
function copyUrl(){
var input = document.getElementById("tid");
input.select();
input.setSelectionRange(0, input.value.length), document.execCommand('Copy');
var locatUrl = "weixin://";
if (/ipad|iphone|mac/i.test(navigator.userAgent)) {
var ifr = document.createElement("iframe");
ifr.src = locatUrl;
ifr.style.display = "none";
document.body.appendChild(ifr);
}else{
window.location.href = locatUrl;
}
}
</script>
<p>22222222222222222222222</p>
<p>33333333333333333333333</p>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment