aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/set/@@species/index.html
diff options
context:
space:
mode:
authorIrvin <irvinfly@gmail.com>2022-02-16 02:02:49 +0800
committerIrvin <irvinfly@gmail.com>2022-02-16 02:35:54 +0800
commit01b0e12ba27b5069248fd09235e9a7143915ee30 (patch)
tree0e9edf538dc3fa3331e1dbb79239b58186765f86 /files/zh-cn/web/javascript/reference/global_objects/set/@@species/index.html
parent6ca84f1794af830ada9736d7289ce29aabb04ca3 (diff)
downloadtranslated-content-01b0e12ba27b5069248fd09235e9a7143915ee30.tar.gz
translated-content-01b0e12ba27b5069248fd09235e9a7143915ee30.tar.bz2
translated-content-01b0e12ba27b5069248fd09235e9a7143915ee30.zip
remove `notranslate` class in zh-CN
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/set/@@species/index.html')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/set/@@species/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/set/@@species/index.html b/files/zh-cn/web/javascript/reference/global_objects/set/@@species/index.html
index c950ccbf5a..c8da916aac 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/set/@@species/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/set/@@species/index.html
@@ -21,13 +21,13 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Set/@@species
<p>species 属性返回默认的构造函数, 它是<code>Set</code> 对象的构造函数:</p>
-<pre class="brush: js notranslate">Set[Symbol.species]; // function Set()</pre>
+<pre class="brush: js">Set[Symbol.species]; // function Set()</pre>
<h3 id="派生对象中的_Species">派生对象中的 Species</h3>
<p>在一个派生集合对象中 (比如你自定义的<code>MySet</code>集合),  <code>MySet</code> 的species 属性 是 <code>MySet</code> 构造函数. 又或者, 你想要重写它, 让它能在你派生的类方法中能返回父级<code>Set</code> 对象:</p>
-<pre class="brush: js notranslate">class MySet extends Set {
+<pre class="brush: js">class MySet extends Set {
// Overwrite MySet species to the parent Set constructor
static get [Symbol.species]() { return Set; }
}</pre>