aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/operators/exponentiation/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/reference/operators/exponentiation/index.html')
-rw-r--r--files/zh-cn/web/javascript/reference/operators/exponentiation/index.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/files/zh-cn/web/javascript/reference/operators/exponentiation/index.html b/files/zh-cn/web/javascript/reference/operators/exponentiation/index.html
index 26fbf9ff64..7e138abfa2 100644
--- a/files/zh-cn/web/javascript/reference/operators/exponentiation/index.html
+++ b/files/zh-cn/web/javascript/reference/operators/exponentiation/index.html
@@ -18,7 +18,7 @@ translation_of: Web/JavaScript/Reference/Operators/Exponentiation
<h2 id="语法">语法</h2>
-<pre class="syntaxbox notranslate"><strong>Operator:</strong> <var>var1</var> ** <var>var2</var>
+<pre class="syntaxbox"><strong>Operator:</strong> <var>var1</var> ** <var>var2</var>
</pre>
<h2 id="简介">简介</h2>
@@ -29,7 +29,7 @@ translation_of: Web/JavaScript/Reference/Operators/Exponentiation
<p>在JavaScript里,你不可能写出一个不明确的求幂表达式。这就是说,你不能立刻将一个一元运算符(<code>+/-/~/!/delete/void/typeof</code>)放在基数前,这样做只会导致一个语法错误。</p>
-<pre class="brush: js notranslate">-2 ** 2;
+<pre class="brush: js">-2 ** 2;
// 4 in Bash, -4 in other languages.
// This is invalid in JavaScript, as the operation is ambiguous.
@@ -44,7 +44,7 @@ translation_of: Web/JavaScript/Reference/Operators/Exponentiation
<h3 id="基本求幂">基本求幂</h3>
-<pre class="brush: js notranslate">2 ** 3 // 8
+<pre class="brush: js">2 ** 3 // 8
3 ** 2 // 9
3 ** 2.5 // 15.588457268119896
10 ** -1 // 0.1
@@ -53,7 +53,7 @@ NaN ** 2 // NaN
<h3 id="结合">结合</h3>
-<pre class="brush: js notranslate">2 ** 3 ** 2 // 512
+<pre class="brush: js">2 ** 3 ** 2 // 512
2 ** (3 ** 2) // 512
(2 ** 3) ** 2 // 64</pre>
@@ -61,12 +61,12 @@ NaN ** 2 // NaN
<p>取求幂表达式的值的相反数:</p>
-<pre class="brush: js notranslate">-(2 ** 2) // -4
+<pre class="brush: js">-(2 ** 2) // -4
</pre>
<p>将求幂表达式的底数转化为一个负数:</p>
-<pre class="brush: js notranslate">(-2) ** 2 // 4
+<pre class="brush: js">(-2) ** 2 // 4
</pre>
<h2 id="规范">规范</h2>