<script>
        var ua = navigator.userAgent.toLowerCase();
        var isWeixin = ua.indexOf('micromessenger') != -1;
        if (!isWeixin) {
            window.location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=888"
        }
</script>

如果非微信浏览器打开,跳转页面如下:
微信公众号js限制页面只能在微信浏览器打开 禁止外置浏览器

相关文章:

  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
  • 2021-11-12
  • 2021-08-23
  • 2022-12-23
  • 2022-01-18
猜你喜欢
  • 2022-01-28
  • 2022-02-06
  • 2021-09-12
  • 2021-04-19
  • 2021-08-21
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案