简体   繁体   中英

Getting device name and model using javascript, jquery or php

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

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

One of most used class: http://mobiledetect.net/

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

You could use the ng-fone angular module that I wrote for an app to do this.

More details here: http://tphangout.com/?p=83

This is not possible in javascript. It does not have the functionality to obtain that much personal information of the user. However, it does have the functionality to tell which browser user is using. These functionalities may be available in a framework like Phonegap but not in core javascript.

Please also refer to this page:

Getting (mobile) device name from javascript

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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