使用javascript,jquery或php获取设备名称和型号 [英] Getting device name and model using javascript, jquery or php

查看:344
本文介绍了使用javascript,jquery或php获取设备名称和型号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个网页,当访问者从他/她的设备查看此页面时,我可以检测设备名称和型号。

I want to create a web page where I can detect the device name and model when visitor view this page from his/her device.

推荐答案

您可以使用PHP类来检查用户代理以查找设备信息。

You can use PHP Class which checks for user-agent to find device information.

最常用的类之一: http://mobiledetect.net/

此问题是由其他用户提出的:检测移动设备的最简单方法

This question was asked by another user: Simplest way to detect a mobile device

这篇关于使用javascript,jquery或php获取设备名称和型号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆