aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/object/is/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/object/is/index.html')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/object/is/index.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/is/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/is/index.html
index 9c3aff1abd..04a528b7b8 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/object/is/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/object/is/index.html
@@ -17,7 +17,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/is
<p><strong>语法</strong></p>
<p>
- </p><pre class="syntaxbox notranslate"><code>Object.is(<var>value1</var>, <var>value2</var>);</code></pre>
+ </p><pre class="syntaxbox"><code>Object.is(<var>value1</var>, <var>value2</var>);</code></pre>
<h3 id="参数">参数</h3>
@@ -59,7 +59,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/is
<h2 id="Polyfill">Polyfill</h2>
-<pre class="brush: js notranslate">if (!Object.is) {
+<pre class="brush: js">if (!Object.is) {
Object.is = function(x, y) {
// SameValue algorithm
if (x === y) { // Steps 1-5, 7-10
@@ -99,7 +99,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/is
<h3 id="使用_Object.is">使用 Object.is</h3>
-<pre class="brush: js notranslate">Object.is('foo', 'foo'); // true
+<pre class="brush: js">Object.is('foo', 'foo'); // true
Object.is(window, window); // true
Object.is('foo', 'bar'); // false