【问题标题】:how to add Windows Phone 8.0 to Mobile_Detect.php class so it detects it如何将 Windows Phone 8.0 添加到 Mobile_Detect.php 类以便检测到它
【发布时间】:2014-05-10 17:42:49
【问题描述】:

我有以下用户代理

[userAgent] => Mozilla/5.0(兼容;MSIE 10.0;Windows Phone 8.0; 三叉戟/6.0; IEMobile/10.0;手臂;触碰;诺基亚; Lumia 925)

但我的功能

if ($detect->isMobile()) {
  //it doesn't come true, it should come here  
}

类参考号Mobile Detect

【问题讨论】:

    标签: php windows-phone-8 user-agent


    【解决方案1】:

    我已经解决了,以下情况会返回windows版本

     if ($detect->version('Windows Phone')) {
       //will return Windows Phone [VER]
    }
    

    有一个protected static $properties = array() 方法

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-03-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-06-10
      相关资源
      最近更新 更多