<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>标题</title>
</head>
<body>
    <script>
        var openlink = "weixin://dl/business/?t=xxxxx"; // 小程序代码
        if(openlink!=''){
            window.location = openlink
        }else{
            console.log([]);
        }
        // 处理微信浏览器
        window.addEventListener('pageshow', function (e) {
          if(e.persisted || (window.performance && window.performance.navigation.type == 2)){
            window.location.reload()
          }
        });
    </script>
</body>
</html>