1.1.10 • Published 9 months ago

@skillnull/device-js v1.1.10

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

安装

CDN

<script src="https://www.unpkg.com/@skillnull/device-js@1.1.9/dist/device.export.js"></script>
# or
<script src="https://cdn.jsdelivr.net/npm/@skillnull/device-js@1.1.9/dist/device.export.js"></script>
NPM or YARN

yarn add @skillnull/device-js
# or with npm
npm install @skillnull/device-js

使用

import Device from '@skillnull/device-js'

/**
* @params:{
*  domain: <String> 生成浏览器指纹所需,不传默认使用window.location.host;
*  transferDateToLunar: <String> 要被转化为农历的日期,需要同时开启info中的lunarDate选项才生效
*  info: <Array> 想要获取的信息,不传默认开启全部信息显示
* }
*
* @return: 返回 Promise 对象
*/

Device.Info({
 domain: 'your domain',
 transferDateToLunar: '需要转化为农历的日期。例如: 2023/01/01。',
 info: ['lunarDate']
}).then(data => {
 console.log(data)
})

或

Device.Info().then(data => {
 console.log(data)
})

INFO 配置项

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

在线地址:https://skillnull.com/others/DeviceJs/index.html

1.1.10

9 months ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago