简体   繁体   English

在JS中发现特定的手机型号

[英]Discovering specific phone model in JS

I am aware that User Agent sniffing is not a fool-proof approach due to the plethora of devices that are getting released on a day-to-day basis, however I need a way to pick up the precise phone model that a user is accessing my site with in order to direct him/her to the appropriate help area/documentation. 我知道用户代理嗅探不是一种万无一失的方法,因为过多的设备日常发布,但我需要一种方法来获取用户正在访问的精确手机型号我的网站,以指导他/她到相应的帮助区域/文档。

Tools such as http://detectmobilebrowsers.com/ allow you to detect the mobile device, browser, os etc but is there anything that can pick up the specific phone model you are using (using Javascript)? 诸如http://detectmobilebrowsers.com/之类的工具允许您检测移动设备,浏览器,操作系统等,但是有什么东西可以拿起您正在使用的特定手机型号(使用Javascript)吗? Eg iPhone 4s 比如iPhone 4s

Thanks for any ideas. 谢谢你的任何想法。

这是迄今为止我发现的最好的http://code.google.com/p/php-mobile-detect/wiki/Mobile_Detect ,但你需要php

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM