设备信息 -威尼斯人888

webapp快捷打包
设备信息

敬告:此 demo 演示为开放测试页面,仅用于开发者快速测试体验应用功能,请严格遵守开发者协议,威尼斯人888-5845vip威尼斯电子游戏

js-sdk 引用方式:

♦ 普通网页 script 方式加载:下载最新版 ,请在页面上调用 jsbridge 接口之前引用 jsbridge-mini.js 库;

♦ js module 方式引用:npm install ym-jsbridge

deviceinfo 获取设备信息

jsbridge.deviceinfo(function(info) {
  show(info);
});
/*
info 回调参数结构:
{
  os: "android", //操作系统 android 或 ios
  //android 设备信息示例
  android: {
    brand: "xiaomi",
    manufacturer: "xiaomi",
    product: "oxygen,
    board: "msm8953",
    device: "oxygen",,
    hardware: "qcom"
    display: "nmf26f",
    id: "nmf26f",
    fingerprint: "xiaomi/oxygen/oxygen:7.1.1/nmf26f/v10.3.1.0.nddcnxm:user/release-keys",
    api_level: 25,
    release: "7.1.1"
  },
  //ios 设备信息示例
  ios: {
    model: "iphone",
    //详见下方型号对照表,iphone9,2 表示 iphone 7 plus
    machine: "iphone9,2",
    nodename: "我的iphone",
    version": "darwin kernel version 19.5.0: tue may 26 20:56:17 pdt 2020; root:xnu-6153.122.2~1/release_arm64_t8010",
    battery_state: 0,
    localized_model: "iphone",
    system_version: "13.5.1",
    system_name: "ios",
    release: "19.5.0",
    sysname: "darwin",
    battery_level: -1,
    name: "我的iphone"
  }
}
ios machine 型号对照表:
如果不全,请自行网上搜索,参考 https://www.theiphonewiki.com/
"ipod5,1"                                  :"ipod touch (5th generation)"
"ipod7,1"                                  :"ipod touch (6th generation)"
"ipod9,1"                                  :"ipod touch (7th generation)"
"iphone3,1", "iphone3,2", "iphone3,3"      :"iphone 4"
"iphone4,1"                                :"iphone 4s"
"iphone5,1", "iphone5,2"                   :"iphone 5"
"iphone5,3", "iphone5,4"                   :"iphone 5c"
"iphone6,1", "iphone6,2"                   :"iphone 5s"
"iphone7,2"                                :"iphone 6"
"iphone7,1"                                :"iphone 6 plus"
"iphone8,1"                                :"iphone 6s"
"iphone8,2"                                :"iphone 6s plus"
"iphone8,4"                                :"iphone se"
"iphone9,1", "iphone9,3"                   :"iphone 7"
"iphone9,2", "iphone9,4"                   :"iphone 7 plus"
"iphone10,1", "iphone10,4"                 :"iphone 8"
"iphone10,2", "iphone10,5"                 :"iphone 8 plus"
"iphone10,3", "iphone10,6"                 :"iphone x"
"iphone11,2"                               :"iphone xs"
"iphone11,4", "iphone11,6"                 :"iphone xs max"
"iphone11,8"                               :"iphone xr"
"iphone12,1"                               :"iphone 11"
"iphone12,3"                               :"iphone 11 pro"
"iphone12,5"                               :"iphone 11 pro max"
"iphone12,8"                               :"iphone se (2nd generation)"
"ipad2,1", "ipad2,2", "ipad2,3", "ipad2,4" :"ipad 2"
"ipad3,1", "ipad3,2", "ipad3,3"            :"ipad (3rd generation)"
"ipad3,4", "ipad3,5", "ipad3,6"            :"ipad (4th generation)"
"ipad6,11", "ipad6,12"                     :"ipad (5th generation)"
"ipad7,5", "ipad7,6"                       :"ipad (6th generation)"
"ipad7,11", "ipad7,12"                     :"ipad (7th generation)"
"ipad4,1", "ipad4,2", "ipad4,3"            :"ipad air"
"ipad5,3", "ipad5,4"                       :"ipad air 2"
"ipad11,4", "ipad11,5"                     :"ipad air (3rd generation)"
"ipad2,5", "ipad2,6", "ipad2,7"            :"ipad mini"
"ipad4,4", "ipad4,5", "ipad4,6"            :"ipad mini 2"
"ipad4,7", "ipad4,8", "ipad4,9"            :"ipad mini 3"
"ipad5,1", "ipad5,2"                       :"ipad mini 4"
"ipad11,1", "ipad11,2"                     :"ipad mini (5th generation)"
"ipad6,3", "ipad6,4"                       :"ipad pro (9.7-inch)"
"ipad7,3", "ipad7,4"                       :"ipad pro (10.5-inch)"
"ipad8,1", "ipad8,2", "ipad8,3", "ipad8,4" :"ipad pro (11-inch) (1st generation)"
"ipad8,9", "ipad8,10"                      :"ipad pro (11-inch) (2nd generation)"
"ipad6,7", "ipad6,8"                       :"ipad pro (12.9-inch) (1st generation)"
"ipad7,1", "ipad7,2"                       :"ipad pro (12.9-inch) (2nd generation)"
"ipad8,5", "ipad8,6", "ipad8,7", "ipad8,8" :"ipad pro (12.9-inch) (3rd generation)"
"ipad8,11", "ipad8,12"                     :"ipad pro (12.9-inch) (4th generation)"
"appletv5,3"                               :"apple tv"
"appletv6,2"                               :"apple tv 4k"
*/

展示数据:


网站地图