Navigator.productSub
只读属性返回当前浏览器的编译版本号。
语法
prodSub = window.navigator.productSub
prodSub
是一个字符串。
例子
<script>
function prodsub() {
var dt = document.getElementById("d").childNodes[0];
dt.data = window.navigator.productSub;
}
</script>
<button onclick="prodsub();">productSub</button>
// returns: 20010725
注释
在IE上,这个属性返回undefined。
在苹果Safari上和Google的Ghrome上这个属性总是返回20030107。
说明
说明 | 状态 | 注释 |
---|---|---|
HTML Living Standard NavigatorID: productSub |
Living Standard | Initial definition |
浏览器兼容性
BCD tables only load in the browser
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.