aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/worker
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/api/worker')
-rw-r--r--files/zh-cn/web/api/worker/onmessage/index.html50
-rw-r--r--files/zh-cn/web/api/worker/postmessage/index.html52
-rw-r--r--files/zh-cn/web/api/worker/terminate/index.html54
3 files changed, 3 insertions, 153 deletions
diff --git a/files/zh-cn/web/api/worker/onmessage/index.html b/files/zh-cn/web/api/worker/onmessage/index.html
index 5baa117035..cd442fcfc4 100644
--- a/files/zh-cn/web/api/worker/onmessage/index.html
+++ b/files/zh-cn/web/api/worker/onmessage/index.html
@@ -69,55 +69,7 @@ myWorker.onmessage = function(e) {
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>特性</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari (WebKit)</th>
- </tr>
- <tr>
- <td>基本支持</td>
- <td>4</td>
- <td>3.5</td>
- <td>10.0</td>
- <td>10.6</td>
- <td>4</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>特性</th>
- <th>Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>Firefox OS (Gecko)</th>
- <th>IE Phone</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>基本支持</td>
- <td>4.4</td>
- <td>3.5</td>
- <td>1.0.1</td>
- <td>10.0</td>
- <td>11.5</td>
- <td>5.1</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat("api.Worker.onmessage")}}
<h2 id="参阅">参阅</h2>
diff --git a/files/zh-cn/web/api/worker/postmessage/index.html b/files/zh-cn/web/api/worker/postmessage/index.html
index bc31892eec..27e87d0868 100644
--- a/files/zh-cn/web/api/worker/postmessage/index.html
+++ b/files/zh-cn/web/api/worker/postmessage/index.html
@@ -151,57 +151,7 @@ from worker, POST send back aBuf.byteLength: 0 myWorker.js:7:2</
<h2 id="Browser_compatibility">Browser compatibility</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div id="compat-desktop">
-<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 (WebKit)</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>10.0 [1]</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>Firefox OS (Gecko)</th>
- <th>IE Phone</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>10.0 [1]</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>[1] Internet Explorer does not support {{domxref("Transferable")}} objects.</p>
+{{Compat("api.Worker.postMessage")}}
<h2 id="See_also">See also</h2>
diff --git a/files/zh-cn/web/api/worker/terminate/index.html b/files/zh-cn/web/api/worker/terminate/index.html
index f49f8f2c91..f724891d22 100644
--- a/files/zh-cn/web/api/worker/terminate/index.html
+++ b/files/zh-cn/web/api/worker/terminate/index.html
@@ -47,59 +47,7 @@ myWorker.terminate();
<h2 id="Browser_compatibility">Browser compatibility</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Edge</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari (WebKit)</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>4</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>3.5</td>
- <td>10.0</td>
- <td>10.6</td>
- <td>4</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Edge</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>Firefox OS (Gecko)</th>
- <th>IE Phone</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>4.4</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>3.5</td>
- <td>1.0.1</td>
- <td>10.0</td>
- <td>11.5</td>
- <td>5.1</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat("api.Worker.terminate")}}
<h2 id="See_also">See also</h2>