aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/window/mozpaintcount
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/api/window/mozpaintcount')
-rw-r--r--files/zh-cn/web/api/window/mozpaintcount/index.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/window/mozpaintcount/index.html b/files/zh-cn/web/api/window/mozpaintcount/index.html
new file mode 100644
index 0000000000..da91c15ba4
--- /dev/null
+++ b/files/zh-cn/web/api/window/mozpaintcount/index.html
@@ -0,0 +1,21 @@
+---
+title: Window.mozPaintCount
+slug: Web/API/Window/mozPaintCount
+translation_of: Web/API/Window/mozPaintCount
+---
+<div>{{APIRef}} {{gecko_minversion_header("2.0")}}</div>
+
+<p>返回当前文档渲染到屏幕上所需的时间。</p>
+
+<h2 id="Syntax" name="Syntax">语法</h2>
+
+<pre class="syntaxbox"><code>var <em>paintCount</em> = window.mozPaintCount;</code></pre>
+
+<ul>
+ <li><code><em>paintCount</em></code> 保存 <code>window.mozPaintCount</code> 属性值。</li>
+ <li><code>window.mozPaintCount</code> 的值是长整数, 文档是新建的时候从0开始, 每渲染一次增加1。</li>
+</ul>
+
+<h2 id="Specification" name="Specification">说明</h2>
+
+<p>不是任何W3C技术规范或建议的一部分。</p>