aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/set/has/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/set/has/index.html')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/set/has/index.html52
1 files changed, 2 insertions, 50 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/set/has/index.html b/files/zh-cn/web/javascript/reference/global_objects/set/has/index.html
index 0174ccd5bc..12c6ad6073 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/set/has/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/set/has/index.html
@@ -35,7 +35,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Set/has
<h3 id="Example:_Testing_size_of_all_array_elements">使用 <code>has</code> 方法</h3>
-<pre class="brush: js line-numbers language-js">var mySet = new Set();
+<pre class="brush: js">var mySet = new Set();
mySet.add('foo');
mySet.has('foo'); // 返回 true
@@ -68,55 +68,7 @@ set1.add({'key1': 1}); // 现在 set1 中有2条(不同引用的)对象了</
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>38</td>
- <td>{{CompatGeckoDesktop("13.0")}}</td>
- <td>11</td>
- <td>25</td>
- <td>7.1</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div>
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatNo() }}</td>
- <td>38</td>
- <td>{{CompatGeckoMobile("13.0")}}</td>
- <td>{{ CompatNo() }}</td>
- <td>{{ CompatNo() }}</td>
- <td>iOS 8</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat}}
<h2 id="相关连接"><strong>相关连接</strong></h2>