【问题标题】:How to detect if Xiaomi's Mi Browser using JS [closed]如何检测小米的小米浏览器是否使用 JS [关闭]
【发布时间】:2021-03-26 05:11:03
【问题描述】:

如果访问我的网站的用户使用 小米的原生 - 小米浏览器,如何使用 javascript 进行检查。

【问题讨论】:

    标签: javascript web browser-detection responsiveness mi


    【解决方案1】:

    useragent

    console.log(navigator.userAgent.indexOf(" Mi ") != -1 ? "MI":"Not MI")

    【讨论】:

      猜你喜欢
      • 2020-10-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-04-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多