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/window/onpaint/index.html | |
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/window/onpaint/index.html')
-rw-r--r-- | files/zh-cn/web/api/window/onpaint/index.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/window/onpaint/index.html b/files/zh-cn/web/api/window/onpaint/index.html new file mode 100644 index 0000000000..3422b02f71 --- /dev/null +++ b/files/zh-cn/web/api/window/onpaint/index.html @@ -0,0 +1,31 @@ +--- +title: Window.onpaint +slug: Web/API/Window/onpaint +translation_of: Web/API/Window/onpaint +--- +<p>{{ ApiRef() }}</p> + +<p id="comment_text_2">{{Non-standard_header}}</p> + +<h2 id="Summary" name="Summary">总结</h2> + +<p>window中的paint事件处理,目前在Gecko-based(火狐)应用中不被支持,参见【注意事项】部分的说明。</p> + +<h2 id="Syntax" name="Syntax">语法</h2> + +<pre class="eval">window.onpaint =<em>funcRef</em>; +</pre> + +<ul> + <li><code>funcRef</code> 是处理函数.</li> +</ul> + +<h2 id="Notes" name="Notes">注意事项</h2> + +<p><code>onpaint</code> 现在没有生效,并且这个事件是否会生效也是一个问题,参见{{Bug(239074)}}.</p> + +<p>window渲染时paint事件会触发。此事件在window的load事件之后触发,并且每次window需要重绘时都会再次触发,当另一个window出现使原先的window不处于激活状态时,原window的onpaint事件则被清理。</p> + +<h2 id="Specification" name="Specification">规范</h2> + +<p id="comment_text_2">不是任何规范的一部分.</p> |