使用Javascript在Windows 8中获取设备信息 [英] Get the Device information in Windows 8 using Javascript

查看:101
本文介绍了使用Javascript在Windows 8中获取设备信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能使用Javascript获取设备信息 - 操作系统,版本,Win 8应用中的唯一ID?我需要将此信息存储在服务器端。或者获取用户身份。获取IP或MAC地址没有意义,因为它可能会发生变化。

Is it possible to get the device info- OS, Version, a unique id in a Win 8 app using Javascript? I need this info to be stored in the server side. Or get the user identity. There is no point in getting the IP or MAC address since it is likely to change.

推荐答案

您可以使用  DeviceInformation类&/或  DeviceInformation.Properties  。

You can use the DeviceInformation class and/or the DeviceInformation.Properties .

您还可以检索
其他设备属性信息
 。

You can also retrieve additional device properties information .

这也可能会有所帮助:
Windows.System.Profile命名空间
 。关于Windows.System.Profile命名空间的注释是它的ID基于当前硬件。但是,如果用户决定更改硬件呢?所以你必须牢记这一点。

This might also help: Its the Windows.System.Profile namespace . A note about the Windows.System.Profile namespace is that it's ID's are based on the current hardware. But what about if the user decides to change the hardware. So you have to put that in mind.

希望这会有所帮助。


这篇关于使用Javascript在Windows 8中获取设备信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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