npm i navigator-info --save
var navigatorInfo = require("navigator-info");
navigatorInfo()
{
"device":"Mobile",
"language":"zh-cn",
"engine":"WebKit",
"browser":"Safari",
"os":"iPhone",
"version":"11.0"
}
💎use js to get brower navigator information ( 获取浏览器信息 ) - npm包名: navigator-info
JavaScript
npm i navigator-info --save
var navigatorInfo = require("navigator-info");
navigatorInfo()
{
"device":"Mobile",
"language":"zh-cn",
"engine":"WebKit",
"browser":"Safari",
"os":"iPhone",
"version":"11.0"
}