判断设备 自动适应

    /**
     * 判断设备,自动适应
     * @param $route
     * @return bool
     */
    function selfAdaption()
    {
        $bool = false;

        $agent = $_SERVER['HTTP_USER_AGENT'];

        if (strpos($agent, "NetFront") || strpos($agent, "iOS") || strpos($agent, "iPhone") || strpos($agent, "iPad") || strpos($agent, "iPod") || strpos($agent, "MIDP-2.0") || strpos($agent, "Opera Mini") || strpos($agent, "UCWEB") || strpos($agent, "Android") || strpos($agent, "Windows CE") || strpos($agent, "SymbianOS")) {
            $bool = true;
        }

        return $bool;
    }
上一篇:薄膜太阳能电池组件项目开工 眉山拟打造中西部光伏产业样板


下一篇:Linux 安装 jdk 11