diff options
author | o_O? <50298406+1337816495@users.noreply.github.com> | 2022-02-23 14:00:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-23 14:00:57 +0800 |
commit | 58204d0949ab5dc4b33e7b6478b15b30c54f5d30 (patch) | |
tree | 6d9b41869af30f4c97de895a660f21ed35f2e89d /files/zh-cn/web | |
parent | 3c0979933fd842aabd89ec77cfae62dfe5f0f27f (diff) | |
download | translated-content-58204d0949ab5dc4b33e7b6478b15b30c54f5d30.tar.gz translated-content-58204d0949ab5dc4b33e7b6478b15b30c54f5d30.tar.bz2 translated-content-58204d0949ab5dc4b33e7b6478b15b30c54f5d30.zip |
typo (#4249)
The name of the variable "resizeOserver" is missing a "b", because there is no variable named "resizeOserver" in the following text, only a variable named "resizeObserver"
Diffstat (limited to 'files/zh-cn/web')
-rw-r--r-- | files/zh-cn/web/api/resizeobserverentry/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/zh-cn/web/api/resizeobserverentry/index.html b/files/zh-cn/web/api/resizeobserverentry/index.html index e3aa5fede9..f5ab911eb8 100644 --- a/files/zh-cn/web/api/resizeobserverentry/index.html +++ b/files/zh-cn/web/api/resizeobserverentry/index.html @@ -29,7 +29,7 @@ translation_of: Web/API/ResizeObserverEntry <p>以下示例通过观察box的宽度变化从而改变其边框圆角半径。</p> -<pre class="brush: js">const resizeOserver = new ResizeObserver(entries => { +<pre class="brush: js">const resizeObserver = new ResizeObserver(entries => { for (let entry of entries) { entry.target.style.borderRadius = Math.max(0, 250 - entry.contentRect.width) + 'px'; } |