aboutsummaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorCharles Wu <camork1@gmail.com>2021-06-27 04:10:10 +0800
committerGitHub <noreply@github.com>2021-06-27 04:10:10 +0800
commitb42c323dfbff5b91b305fa53637ef4d1d8c29aeb (patch)
tree3d2f433be06be8400b870cde25c77961d165a736 /files
parentbbf7fddc4cbec1c20e2c98a1db0c10ee33bf6dfd (diff)
downloadtranslated-content-b42c323dfbff5b91b305fa53637ef4d1d8c29aeb.tar.gz
translated-content-b42c323dfbff5b91b305fa53637ef4d1d8c29aeb.tar.bz2
translated-content-b42c323dfbff5b91b305fa53637ef4d1d8c29aeb.zip
Update Web/JavaScript/Reference/Functions/Arrow_functions, zh-CN (#1312)
Diffstat (limited to 'files')
-rw-r--r--files/zh-cn/web/javascript/reference/functions/arrow_functions/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/zh-cn/web/javascript/reference/functions/arrow_functions/index.html b/files/zh-cn/web/javascript/reference/functions/arrow_functions/index.html
index 1221c109b5..f006d987cf 100644
--- a/files/zh-cn/web/javascript/reference/functions/arrow_functions/index.html
+++ b/files/zh-cn/web/javascript/reference/functions/arrow_functions/index.html
@@ -95,9 +95,9 @@ elements.map(({ "length": lengthFooBArX }) =&gt; lengthFooBArX); // [8, 6, 7, 9]
<p>在箭头函数出现之前,每一个新函数根据它是被如何调用的来定义这个函数的this值:</p>
<ul>
- <li>如果是该函数是一个构造函数,this指针指向一个新的对象</li>
+ <li>如果该函数是一个构造函数,this指针指向一个新的对象</li>
<li>在严格模式下的函数调用下,this指向<font face="consolas, Liberation Mono, courier, monospace"><span style="background-color: rgba(220, 220, 220, 0.5);">undefined</span></font></li>
- <li>如果是该函数是一个对象的方法,则它的this指针指向这个对象</li>
+ <li>如果该函数是一个对象的方法,则它的this指针指向这个对象</li>
<li>等等</li>
</ul>