lina-xiao
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>水务缴费/预存</title>
</head>
<body onload="closeWindow();">
<h1>支付成功</h1>
<div id="show">  
  将倒计时10秒后关闭当前窗口,返回微信公众号窗口
</div>
</body>
<script type="text/javascript">
var time=5;  
function closeWindow(){  
window.setTimeout(\'closeWindow()\',1000);  
if(time>0){  
   document.getElementById("show").innerHTML=" 将倒计时<font color=red>"+time+"</font>秒后关闭当前窗口,返回微信公众号窗口";  
   time--;  
}else{  
   WeixinJSBridge.call(\'closeWindow\');
   //this.window.opener=null; //关闭窗口时不出现提示窗口  
  //window.close();  
 }
}

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-24
  • 2021-08-21
  • 2022-02-15
  • 2021-08-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-25
  • 2022-12-23
  • 2021-05-19
相关资源
相似解决方案