Navigator:buildID 属性
非标准: 该特性是非标准的,请尽量不要在生产环境中使用它!
返回浏览器的构建标识符。在现代浏览器中,为了保护隐私,该属性现在返回一个固定的时间戳,例如 Firefox 64 及更高版本中返回 20181001000000
。
值
一个表示应用程序构建标识符的字符串。构建 ID 的格式为 YYYYMMDDHHMMSS
。
示例
js
console.log(navigator.buildID);
规范
未得到任何公共标准支持。
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
buildID |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Non-standard. Check cross-browser support before using.
- See implementation notes.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.