Giter VIP home page Giter VIP logo

hoboy0313 / get-device-info Goto Github PK

View Code? Open in Web Editor NEW

This project forked from skillnull/devicejs

0.0 0.0 0.0 32 KB

JS获取设备信息(操作系统信息、地理位置、UUID、横竖屏状态、设备类型、网络状态、浏览器信息、生成浏览器指纹等)

Home Page: http://skillnull.com/others/GetDeviceInfo/index.html

License: MIT License

JavaScript 82.94% HTML 8.97% CSS 8.09%

get-device-info's Introduction

License MIT

JS获取设备信息

  • deviceType: 设备类型
  • OS: 操作系统
  • OSVersion: 操作系统版本
  • screenHeight: 屏幕高
  • screenWidth: 屏幕宽
  • language: 当前使用的语言-国家
  • netWork: 联网类型
  • orientation: 横竖屏
  • browserInfo: 浏览器信息
  • fingerprint: 浏览器指纹
  • userAgent: 包含 appCodeName,appName,appVersion,language,platform 等
  • geoPosition: 地理位置
  • date: 系统时间
  • UUID: 通用唯一标识 Universally Unique Identifier

调用方式:

   document.write(JSON.stringify(DeviceInfo.getDeviceInfo(
        {
            domain: 'http://www.skillnull.com',
            info: ['deviceType', 'OS', 'language']
        }
    )))

注:domain是生成浏览器指纹所需的,不传默认使用window.location.host; info为想要获取的信息,不传默认显示全部信息。

get-device-info's People

Contributors

skillnull avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.