// 用户的信息,浏览器,操作系统等
let userAgent = {
browser: "",
os: "",
platform: "",
engine: "",
};
const bowser = Bowser.parse(window.navigator.userAgent);
if (bowser) {
userAgent = {
browser: `${bowser.browser.name} ${bowser.browser.version}`,
os: `${bowser.os.name} ${bowser.os.version}`,
platform: bowser.platform.vendor,
engine: bowser.engine.name,
};
}