代码 | 说明 | 结果 |
---|
navigator.platform | 返回运行浏览器的操作系统平台 | |
navigator.appName | 返回浏览器的名称 | |
navigator.product | 返回浏览器产品名称 | |
navigator.appVersion | 返回浏览器版本信息 | |
navigator.userAgent | 返回由客户机发送服务器的 user-agent 头部的值 | |
screen.width | 显示器屏幕宽度 | |
screen.height | 显示器屏幕高度 | |
document.documentElement.clientWidth | 浏览器可视宽度 | |
document.documentElement.clientHeight | 浏览器可视高度 | |
screen.colorDepth | 返回目标设备或缓冲器上的调色板的比特深度 | |
navigator.appCodeName | 返回浏览器的代码名 | |
navigator.vendor | 返回浏览器厂家信息 | |
navigator.onLine | 返回指明系统是否处于脱机模式的布尔值 | |
navigator.language | 返回浏览器默认语言 | |
navigator.cookieEnabled | 浏览器是否开启cookie | |
navigator.mimeTypes.length | 浏览器的MIME类型数量 | |
navigator.mimeTypes | 浏览器MIME支持类型列表 | |
navigator.plugins.length | 浏览器安装插件数量 | |
navigator.plugins | 浏览器安装插件信息列表 |