<?php
var ua = navigator.userAgent.toLowerCase(); if (ua.match(/MicroMessenger/i)=="micromessenger" && ua.indexOf('iphone') > 0) { alert("iPhone 微信浏览器"); }else if (ua.match(/MicroMessenger/i)=="micromessenger" && ua.indexOf('android') > 0) { alert("Android 微信浏览器"); }else if( ua.indexOf('iphone') > 0) { //需对所有 iOS 系统 UA 信息进行判断 alert("iPhone 浏览器"); }else if (ua.indexOf('android') > 0) { //需对所有 Android 系统 UA 信息进行判断 alert("Android 浏览器"); }else{ alert("未识别"); }

?>

  

 

相关文章:

  • 2022-03-02
  • 2021-11-22
  • 2022-12-23
  • 2021-05-17
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2021-12-26
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2022-12-23
  • 2021-11-18
相关资源
相似解决方案