发现在JavaScript固件 [英] find the firmware in javascript

查看:235
本文介绍了发现在JavaScript固件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要寻找一种方式来找到我的网站正在查看计算机的操作系统版本和型号版本。
jQuery的,JavaScript的,HTML,PHP,ASP ...
任何一种语言的浏览器普遍支持就行了。
我知道这是可能的,COMEX做到了适用于iOS。
我认为他所做的:

I am looking for a way to find the os version and model version of the computer my site is being viewed on. jQuery, javascript, html, php, asp... Any language browsers generally support will do. I know it's possible, comex did it for iOS. I think he did:

firmware.indexof("4.0");

不过,我需要的型号太多,就像我之前说的。这是一个的 veeeeeerrrrrryyyyyy 的长脚本,不会为我反正工作。
一派
 它,但没有运气。
在此先感谢!

But I need the model too, as I said before. That is a veeeeeerrrrrryyyyyy long script that won't work for me anyway. I googled it, but no luck. Thanks in advance!

推荐答案

如果您希望您的客户端将安装Flash(95%的世界确实的+),你可以使用Flash影片来检查flash.system通过。 Capabilities对象。它有<一个href=\"http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system/Capabilities.html\"相对=nofollow>大量的信息,你可能会感兴趣的。如果你试图找到它在iOS的机器上,那么显然这是不行的,因为它不会有闪光就可以了。

If you expect that your clients will have Flash installed (95%+ of the world does), you can use a Flash movie to check the flash.system.Capabilities object. It has lots of information you might be interested in. If you're trying to find it on an iOS machine, then obviously this won't work since it's not going to have Flash on it.

这篇关于发现在JavaScript固件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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