diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/api/navigator/buildid | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/zh-cn/web/api/navigator/buildid')
-rw-r--r-- | files/zh-cn/web/api/navigator/buildid/index.html | 39 |
1 files changed, 39 insertions, 0 deletions
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 +--- +<p>{{ ApiRef("HTML DOM") }}</p> + +<p>返回所使用浏览器的<span class="short_text" id="result_box" lang="zh-CN"><span class="alt-edited">构建</span><span>标识</span></span>符。现代浏览器中,这个属性返回一个固定的时间戳作为私有的计量方法,比如 Firefox 64 及以后的版本返回 <code>20181001000000</code>。</p> + +<h2 id="Syntax" name="Syntax">语法</h2> + +<pre class="brush: js"><em>buildID</em> = <em>navigator</em>.buildID; +</pre> + +<h3 id="值">值</h3> + +<p>一个字符串,用来表示当前应用的构建标识。构建 ID 的格式为:<code>YYYYMMDDHHMMSS</code>。</p> + +<h2 id="示例"><font face="x-locale-heading-primary, zillaslab, Palatino, Palatino Linotype, x-locale-heading-secondary, serif"><span style="font-size: 37.33327865600586px;"><strong>示例</strong></span></font></h2> + +<pre class="brush: js">console.log(window.navigator.buildID); +</pre> + +<h2 id="Specification" name="Specification">规范</h2> + +<p>未得到任何公共标准支持。</p> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + +<p>{{Compat("api.Navigator.buildID")}}</p> + +<h2 id="另请参阅">另请参阅</h2> + +<p><a href="https://www.fxsitecompat.com/en-CA/docs/2018/navigator-buildid-now-returns-a-fixed-timestamp/">navigator.buildID 现在返回一个固定的时间戳。</a></p> |