From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/zh-cn/web/api/navigator/buildid/index.html | 39 ++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 files/zh-cn/web/api/navigator/buildid/index.html (limited to 'files/zh-cn/web/api/navigator/buildid') diff --git a/files/zh-cn/web/api/navigator/buildid/index.html b/files/zh-cn/web/api/navigator/buildid/index.html new file mode 100644 index 0000000000..8e9d5fa3d0 --- /dev/null +++ b/files/zh-cn/web/api/navigator/buildid/index.html @@ -0,0 +1,39 @@ +--- +title: Navigator.buildID +slug: Web/API/Navigator/buildID +tags: + - API + - DOM + - Gecko + - 属性 +translation_of: Web/API/Navigator/buildID +--- +

{{ ApiRef("HTML DOM") }}

+ +

返回所使用浏览器的构建标识符。现代浏览器中,这个属性返回一个固定的时间戳作为私有的计量方法,比如 Firefox 64 及以后的版本返回 20181001000000

+ +

语法

+ +
buildID = navigator.buildID;
+
+ +

+ +

一个字符串,用来表示当前应用的构建标识。构建 ID 的格式为:YYYYMMDDHHMMSS

+ +

示例

+ +
console.log(window.navigator.buildID);
+
+ +

规范

+ +

未得到任何公共标准支持。

+ +

浏览器兼容性

+ +

{{Compat("api.Navigator.buildID")}}

+ +

另请参阅

+ +

navigator.buildID 现在返回一个固定的时间戳。

-- cgit v1.2.3-54-g00ecf