Navigator:productSub 属性

已弃用: 不再推荐使用该特性。虽然一些浏览器仍然支持它,但也许已从相关的 web 标准中移除,也许正准备移除或出于兼容性而保留。请尽量不要使用该特性,并更新现有的代码;参见本页面底部的兼容性表格以指导你作出决定。请注意,该特性随时可能无法正常工作。

Navigator.productSub 只读属性返回当前浏览器的构建版本号。

一个字符串。

示例

js
document.body.textContent = `productSub:${navigator.productSub}`;

备注

在 IE 中,这个属性返回 undefined。

在 Apple Safari 和 Google Chrome 中,这个属性始终返回 20030107

规范

Specification
HTML
# dom-navigator-productsub-dev

浏览器兼容性

Report problems with this compatibility data on GitHub
desktopmobileserver
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Deno
Node.js
productSub
Deprecated

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
Deprecated. Not for use in new websites.
See implementation notes.