From 58204d0949ab5dc4b33e7b6478b15b30c54f5d30 Mon Sep 17 00:00:00 2001 From: o_O? <50298406+1337816495@users.noreply.github.com> Date: Wed, 23 Feb 2022 14:00:57 +0800 Subject: 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" --- files/zh-cn/web/api/resizeobserverentry/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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

以下示例通过观察box的宽度变化从而改变其边框圆角半径。

-
const resizeOserver = new ResizeObserver(entries => {
+
const resizeObserver = new ResizeObserver(entries => {
   for (let entry of entries) {
     entry.target.style.borderRadius = Math.max(0, 250 - entry.contentRect.width) + 'px';
   }
-- 
cgit v1.2.3-54-g00ecf