zoukankan      html  css  js  c++  java
  • [转]php-mobile-detect

    转自:http://www.oschina.net/p/php-mobile-detect

    php-mobile-detect (Mobile_Detect) 是一个 PHP 类,用来通过 User-Agent 检测各种手机设备。

    示例代码:

    include("Mobile_Detect.php");
    $detect
    =newMobile_Detect();
    if($detect->iOS()){
       
    // code to run for the Apple iOS platform.
    }
    if($detect->isAndroidOS()){
       
    // code to run for the Google Android platform.
    }
    if($detect->isMobile()){
       
    // any mobile platform
    }
    if($detect->isTablet()){
       
    // any tablet
    }


    下载地址: http://code.google.com/p/php-mobile-detect/downloads/list
         http://mobiledetect.net/

    JS CHECK OS : http://quojs.tapquo.com/
  • 相关阅读:
    8.10日报
    8.9日报
    8.8日报
    8.7日报
    《大道至简》读后感
    8.6日报
    8.5日报
    8.4日报
    8.3日报
    8.2日报
  • 原文地址:https://www.cnblogs.com/Athrun/p/3530284.html
Copyright © 2011-2022 走看看