aboutsummaryrefslogtreecommitdiff
path: root/files/zh-tw/web/api/web_workers_api
diff options
context:
space:
mode:
authorYujiSoftware <yuji.software+github@gmail.com>2022-03-02 20:01:54 +0900
committerIrvin <irvinfly@gmail.com>2022-03-04 01:02:45 +0800
commitc46e9da7f68bd682fc9ff1452b7fe63df1227151 (patch)
treefe6c6e20521b16a22ec64755b88a39effd81a4d7 /files/zh-tw/web/api/web_workers_api
parente671353fc364cef89441d031e0e8b9300b67951b (diff)
downloadtranslated-content-c46e9da7f68bd682fc9ff1452b7fe63df1227151.tar.gz
translated-content-c46e9da7f68bd682fc9ff1452b7fe63df1227151.tar.bz2
translated-content-c46e9da7f68bd682fc9ff1452b7fe63df1227151.zip
Migrate to Compat macro (zh-tw)
Diffstat (limited to 'files/zh-tw/web/api/web_workers_api')
-rw-r--r--files/zh-tw/web/api/web_workers_api/index.html118
-rw-r--r--files/zh-tw/web/api/web_workers_api/using_web_workers/index.html122
2 files changed, 0 insertions, 240 deletions
diff --git a/files/zh-tw/web/api/web_workers_api/index.html b/files/zh-tw/web/api/web_workers_api/index.html
index ba18e065dd..ef8b549950 100644
--- a/files/zh-tw/web/api/web_workers_api/index.html
+++ b/files/zh-tw/web/api/web_workers_api/index.html
@@ -82,125 +82,7 @@ translation_of: Web/API/Web_Workers_API
</tbody>
</table>
-<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>4</td>
- <td>{{CompatGeckoDesktop(1.9.1)}}</td>
- <td>10.0</td>
- <td>10.6</td>
- <td>4</td>
- </tr>
- <tr>
- <td>Shared workers</td>
- <td>4</td>
- <td>{{CompatGeckoDesktop(29)}}</td>
- <td>{{CompatNo}}</td>
- <td>10.6</td>
- <td>4</td>
- </tr>
- <tr>
- <td>Passing data using structured cloning</td>
- <td>13</td>
- <td>{{CompatGeckoDesktop(8)}}</td>
- <td>10.0</td>
- <td>11.5</td>
- <td>6</td>
- </tr>
- <tr>
- <td>Passing data using  transferable objects</td>
- <td>17 {{property_prefix("webkit")}}<br>
- 21</td>
- <td>{{CompatGeckoDesktop(18)}}</td>
- <td>{{CompatNo}}</td>
- <td>15</td>
- <td>6</td>
- </tr>
- <tr>
- <td>Global {{domxref("window.URL", "URL")}}</td>
- <td>10<sup>[1]</sup><br>
- 23</td>
- <td>{{CompatGeckoDesktop(21)}}</td>
- <td>11</td>
- <td>15</td>
- <td>6<sup>[1]</sup></td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for 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>4.4</td>
- <td>4</td>
- <td>{{CompatGeckoMobile(1.9.1)}}</td>
- <td>1.0.1</td>
- <td>10.0</td>
- <td>11.5</td>
- <td>5.1</td>
- </tr>
- <tr>
- <td>Shared workers</td>
- <td>{{CompatNo}}</td>
- <td>4</td>
- <td>29</td>
- <td>1.4</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td>Passing data using structured cloning</td>
- <td>{{CompatNo}}</td>
- <td>4</td>
- <td>8</td>
- <td>1.0.1</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td>Passing data using  transferable objects</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>18</td>
- <td>1.0.1</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>[1] As <code>webkitURL</code>.</p>
<h2 id="See_also">See also</h2>
diff --git a/files/zh-tw/web/api/web_workers_api/using_web_workers/index.html b/files/zh-tw/web/api/web_workers_api/using_web_workers/index.html
index f13a83954a..b2767fa6f4 100644
--- a/files/zh-tw/web/api/web_workers_api/using_web_workers/index.html
+++ b/files/zh-tw/web/api/web_workers_api/using_web_workers/index.html
@@ -657,129 +657,7 @@ onmessage = function(event) {
</tbody>
</table>
-<h2 id="瀏覽器相容性">瀏覽器相容性</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>4<sup>[1]</sup></td>
- <td>{{CompatGeckoDesktop("1.9.1")}}</td>
- <td>10.0</td>
- <td>10.6<sup>[1]</sup></td>
- <td>4<sup>[2]</sup></td>
- </tr>
- <tr>
- <td>Shared workers</td>
- <td>4<sup>[1]</sup></td>
- <td>{{CompatGeckoDesktop(29)}}</td>
- <td>{{CompatNo}}</td>
- <td>10.6</td>
- <td>4<sup>[2]</sup></td>
- </tr>
- <tr>
- <td>Passing data using <a href="/en-US/docs/Web/Guide/API/DOM/The_structured_clone_algorithm">structured cloning</a></td>
- <td>13</td>
- <td>{{CompatGeckoDesktop(8)}}</td>
- <td>10.0</td>
- <td>11.5</td>
- <td>6</td>
- </tr>
- <tr>
- <td>Passing data using <a class="external" href="http://www.w3.org/html/wg/drafts/html/master/infrastructure.html#transferable-objects">transferable objects</a></td>
- <td>17 {{property_prefix("webkit")}}<br>
- 21</td>
- <td>{{CompatGeckoDesktop(18)}}</td>
- <td>{{CompatNo}}</td>
- <td>15</td>
- <td>6</td>
- </tr>
- <tr>
- <td>Global {{domxref("window.URL", "URL")}}</td>
- <td>10<sup>[3]</sup><br>
- 23</td>
- <td>{{CompatGeckoDesktop(21)}}</td>
- <td>11</td>
- <td>15</td>
- <td>6<sup>[3]</sup></td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome Mobile</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>4<sup>[1]</sup></td>
- <td>3.5</td>
- <td>1.0.1</td>
- <td>10.0</td>
- <td>11.5<sup>[1]</sup></td>
- <td>5.1<sup>[2]</sup></td>
- </tr>
- <tr>
- <td>Shared workers</td>
- <td>{{CompatNo}}</td>
- <td>4<sup>[1]</sup></td>
- <td>8</td>
- <td>1.0.1</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td>Passing data using <a href="/en-US/docs/Web/Guide/API/DOM/The_structured_clone_algorithm">structured cloning</a></td>
- <td>{{CompatNo}}</td>
- <td>4</td>
- <td>8</td>
- <td>1.0.1</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td>Passing data using <a class="external" href="http://www.w3.org/html/wg/drafts/html/master/infrastructure.html#transferable-objects">transferable objects</a></td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>18</td>
- <td>1.0.1</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>[1] Chrome 和 Opera 會丟出錯誤:"<code>Uncaught SecurityError: Failed to construct 'Worker': Script at 'file:///Path/to/worker.js' cannot be accessed from origin 'null'.</code>",當從 local 端而非網域執行 worker。</p>
-
-<p>[2] Safari 7.1.2 可以從 worker 呼叫 <code>console.log,但並不會任何效果,而更早的版本則是不允許呼叫</code> <code>console.log。</code></p>
-
-<p>[3] 會有前綴 <code>webkitURL</code>.</p>
<h2 id="延伸閱讀">延伸閱讀</h2>