diff options
author | Irvin <irvinfly@gmail.com> | 2022-02-16 02:03:27 +0800 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2022-02-16 02:35:54 +0800 |
commit | 012ee621791b6895e637f96e6523027951768f25 (patch) | |
tree | 29cfacc0d5092af45870dcc74f22feb8b2664fbf /files/zh-cn/web/javascript/guide/functions | |
parent | ba91b017421b001cd226135612a7bd5dfcd88904 (diff) | |
download | translated-content-012ee621791b6895e637f96e6523027951768f25.tar.gz translated-content-012ee621791b6895e637f96e6523027951768f25.tar.bz2 translated-content-012ee621791b6895e637f96e6523027951768f25.zip |
remove inline style for zh-CN
Diffstat (limited to 'files/zh-cn/web/javascript/guide/functions')
-rw-r--r-- | files/zh-cn/web/javascript/guide/functions/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/zh-cn/web/javascript/guide/functions/index.html b/files/zh-cn/web/javascript/guide/functions/index.html index ab6677c5d9..f80d65ce3b 100644 --- a/files/zh-cn/web/javascript/guide/functions/index.html +++ b/files/zh-cn/web/javascript/guide/functions/index.html @@ -370,7 +370,7 @@ A(1); // logs 6 (1 + 2 + 3)</pre> outside()(10); // returns 20 instead of 10</pre> -<p>命名冲突发生在<code>return x</code>上,<code>inside</code>的参数<code>x</code>和<code>outside</code>变量<code>x</code>发生了冲突。这里的作用链域是{<code style="font-style: normal;">inside</code>, <code style="font-style: normal;">outside</code>, 全局对象}。因此<code>inside</code>的<code>x</code>具有最高优先权,返回了20(<code>inside</code>的<code>x</code>)而不是10(<code>outside</code>的<code>x</code>)。</p> +<p>命名冲突发生在<code>return x</code>上,<code>inside</code>的参数<code>x</code>和<code>outside</code>变量<code>x</code>发生了冲突。这里的作用链域是{<code>inside</code>, <code>outside</code>, 全局对象}。因此<code>inside</code>的<code>x</code>具有最高优先权,返回了20(<code>inside</code>的<code>x</code>)而不是10(<code>outside</code>的<code>x</code>)。</p> <h2 id="闭包">闭包</h2> |