aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/operators/new.target/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/reference/operators/new.target/index.html')
-rw-r--r--files/zh-cn/web/javascript/reference/operators/new.target/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/zh-cn/web/javascript/reference/operators/new.target/index.html b/files/zh-cn/web/javascript/reference/operators/new.target/index.html
index 63fd2f1b8a..ecc5d7932a 100644
--- a/files/zh-cn/web/javascript/reference/operators/new.target/index.html
+++ b/files/zh-cn/web/javascript/reference/operators/new.target/index.html
@@ -18,7 +18,7 @@ translation_of: Web/JavaScript/Reference/Operators/new.target
<h2 id="描述">描述</h2>
-<p><code>new.target</code>语法由一个关键字"<code>new</code>",一个点,和一个属性名"<font face="Consolas, Liberation Mono, Courier, monospace">target</font>"组成。通常"<code>new.</code>"<code>的</code>作用是提供属性访问的上下文,但这里"<code>new.</code>"其实不是一个真正的对象。不过在构造方法调用中,<code>new.target</code>指向被<code>new</code>调用的构造函数,所以"<code>new.</code>"成为了一个虚拟上下文。</p>
+<p><code>new.target</code>语法由一个关键字"<code>new</code>",一个点,和一个属性名"<code>target</code>"组成。通常"<code>new.</code>"<code>的</code>作用是提供属性访问的上下文,但这里"<code>new.</code>"其实不是一个真正的对象。不过在构造方法调用中,<code>new.target</code>指向被<code>new</code>调用的构造函数,所以"<code>new.</code>"成为了一个虚拟上下文。</p>
<p><code>new.target</code>属性适用于所有函数访问的元属性。在  <a href="http://www.javascripttutorial.net/es6/javascript-arrow-function/">arrow functions</a> 中,<code>new.target</code> 指向最近的外层函数的<code>new.target</code>(An arrow function expression does not have its own this, arguments, super , or new.target) 。</p>