<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <script src="common.js"></script> <script> // console.log(window.navigator.userAgent);//判断当前浏览器类型 // console.log(window.navigator.platform);//判断系统类型 console.log(window.navigator.platform); console.log(window.navigator.userAgent); </script> </body> </html>
navigator对象之判断当前系统及浏览器类型
最新推荐文章于 2023-08-15 16:07:55 发布