diff options
Diffstat (limited to 'files/zh-cn/web/api/headers')
-rw-r--r-- | files/zh-cn/web/api/headers/delete/index.html | 58 | ||||
-rw-r--r-- | files/zh-cn/web/api/headers/entries/index.html | 52 | ||||
-rw-r--r-- | files/zh-cn/web/api/headers/get/index.html | 58 | ||||
-rw-r--r-- | files/zh-cn/web/api/headers/has/index.html | 62 | ||||
-rw-r--r-- | files/zh-cn/web/api/headers/headers/index.html | 58 | ||||
-rw-r--r-- | files/zh-cn/web/api/headers/index.html | 76 |
6 files changed, 6 insertions, 358 deletions
diff --git a/files/zh-cn/web/api/headers/delete/index.html b/files/zh-cn/web/api/headers/delete/index.html index 12c52da4c0..aa223853f3 100644 --- a/files/zh-cn/web/api/headers/delete/index.html +++ b/files/zh-cn/web/api/headers/delete/index.html @@ -69,63 +69,7 @@ myHeaders.get('Content-Type'); // Returns null, as it has been deleted</pre> <h2 id="Browser_compatibility">Browser compatibility</h2> -<p>{{ CompatibilityTable() }}</p> - -<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>{{ CompatChrome(42) }}<br> - {{ CompatChrome(41) }} behind pref<br> - </td> - <td>{{ CompatGeckoDesktop(39)}}<br> - 34 behind pref</td> - <td>{{ CompatNo }}</td> - <td> - <p>29<br> - 28 behind pref</p> - </td> - <td>{{ CompatNo }}</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> - <th>Chrome for Android</th> - </tr> - <tr> - <td>Basic support</td> - <td>{{ CompatNo }}</td> - <td>{{ CompatNo }}</td> - <td>{{ CompatNo }}</td> - <td>{{ CompatNo }}</td> - <td>{{ CompatNo }}</td> - <td>{{ CompatNo }}</td> - <td>{{ CompatNo }}</td> - </tr> - </tbody> -</table> -</div> +{{Compat("api.Headers.delete")}} <h2 id="See_also">See also</h2> diff --git a/files/zh-cn/web/api/headers/entries/index.html b/files/zh-cn/web/api/headers/entries/index.html index abcc44ce61..2d9ad1a68a 100644 --- a/files/zh-cn/web/api/headers/entries/index.html +++ b/files/zh-cn/web/api/headers/entries/index.html @@ -56,57 +56,7 @@ vary: Accept-Language</pre> <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</th> - </tr> - <tr> - <td>Basic support</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatGeckoDesktop(44)}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</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 Mobile</th> - <th>Opera Mobile</th> - <th>Safari Mobile</th> - </tr> - <tr> - <td>Basic support</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatGeckoMobile(44)}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - </tr> - </tbody> -</table> -</div> +{{Compat("api.Headers.entries")}} <h2 id="See_also">See also</h2> diff --git a/files/zh-cn/web/api/headers/get/index.html b/files/zh-cn/web/api/headers/get/index.html index 7ef3dfffc7..94bdb4f552 100644 --- a/files/zh-cn/web/api/headers/get/index.html +++ b/files/zh-cn/web/api/headers/get/index.html @@ -70,63 +70,7 @@ myHeaders.get('Accept-Encoding'); // Returns <code>"deflate,gzip"</code> <h2 id="Browser_compatibility">Browser compatibility</h2> -<p>{{ CompatibilityTable() }}</p> - -<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>{{ CompatChrome(42) }}<br> - {{ CompatChrome(41) }} behind pref<br> - </td> - <td>{{ CompatGeckoDesktop(39)}}<br> - 34 behind pref</td> - <td>{{ CompatNo }}</td> - <td> - <p>29<br> - 28 behind pref</p> - </td> - <td>{{ CompatNo }}</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> - <th>Chrome for Android</th> - </tr> - <tr> - <td>Basic support</td> - <td>{{ CompatNo }}</td> - <td>{{ CompatNo }}</td> - <td>{{ CompatNo }}</td> - <td>{{ CompatNo }}</td> - <td>{{ CompatNo }}</td> - <td>{{ CompatNo }}</td> - <td>{{ CompatNo }}</td> - </tr> - </tbody> -</table> -</div> +{{Compat("api.Headers.get")}} <h2 id="See_also">See also</h2> diff --git a/files/zh-cn/web/api/headers/has/index.html b/files/zh-cn/web/api/headers/has/index.html index 471bd1fb90..7e9bfe3824 100644 --- a/files/zh-cn/web/api/headers/has/index.html +++ b/files/zh-cn/web/api/headers/has/index.html @@ -56,67 +56,7 @@ myHeaders.has('Accept-Encoding'); // Returns false <h2 id="Browser_compatibility">Browser compatibility</h2> -<p>{{ CompatibilityTable() }}</p> - -<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>{{ CompatChrome(42) }}<br> - {{ CompatChrome(41) }} behind pref<br> - </td> - <td>{{CompatVersionUnknown}}</td> - <td>{{ CompatGeckoDesktop(39)}}<br> - 34 behind pref</td> - <td>{{ CompatNo }}</td> - <td> - <p>29<br> - 28 behind pref</p> - </td> - <td>{{ CompatNo }}</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> - <th>Chrome for Android</th> - </tr> - <tr> - <td>Basic support</td> - <td>{{ CompatNo }}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{ CompatNo }}</td> - <td>{{ CompatNo }}</td> - <td>{{ CompatNo }}</td> - <td>{{ CompatNo }}</td> - <td>{{ CompatNo }}</td> - <td>{{ CompatNo }}</td> - </tr> - </tbody> -</table> -</div> +{{Compat("api.Headers.has")}} <h2 id="See_also">See also</h2> diff --git a/files/zh-cn/web/api/headers/headers/index.html b/files/zh-cn/web/api/headers/headers/index.html index 956904968d..a096a43c35 100644 --- a/files/zh-cn/web/api/headers/headers/index.html +++ b/files/zh-cn/web/api/headers/headers/index.html @@ -62,63 +62,7 @@ secondHeadersObj.get('Content-Type'); // Would return 'image/jpeg' — it inheri <h2 id="Browser_compatibility">Browser compatibility</h2> -<p>{{ CompatibilityTable() }}</p> - -<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>{{ CompatChrome(42) }}<br> - {{ CompatChrome(41) }} behind pref<br> - </td> - <td>{{ CompatGeckoDesktop(39)}}<br> - 34 behind pref</td> - <td>{{ CompatNo }}</td> - <td> - <p>29<br> - 28 behind pref</p> - </td> - <td>{{ CompatNo }}</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> - <th>Chrome for Android</th> - </tr> - <tr> - <td>Basic support</td> - <td>{{ CompatNo }}</td> - <td>{{ CompatNo }}</td> - <td>{{ CompatNo }}</td> - <td>{{ CompatNo }}</td> - <td>{{ CompatNo }}</td> - <td>{{ CompatNo }}</td> - <td>{{ CompatNo }}</td> - </tr> - </tbody> -</table> -</div> +{{Compat("api.Headers.Headers")}} <h2 id="See_also">See also</h2> diff --git a/files/zh-cn/web/api/headers/index.html b/files/zh-cn/web/api/headers/index.html index 75a7b51982..6ee8e3e390 100644 --- a/files/zh-cn/web/api/headers/index.html +++ b/files/zh-cn/web/api/headers/index.html @@ -98,81 +98,7 @@ myHeaders.get('Content-Type'); <h2 id="浏览器兼容性">浏览器兼容性</h2> -<p>{{ CompatibilityTable() }}</p> - -<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>{{ CompatChrome(42) }}<br> - {{ CompatChrome(41) }} behind pref<br> - </td> - <td>{{ CompatGeckoDesktop(39)}}<br> - 34 behind pref</td> - <td>{{ CompatNo }}</td> - <td> - <p>29<br> - 28 behind pref</p> - </td> - <td>{{ CompatNo }}</td> - </tr> - <tr> - <td><code>entries()</code>, <code>keys()</code>, <code>values()</code>, and support of <code>for...of</code></td> - <td>{{CompatUnknown}}</td> - <td>{{ CompatGeckoDesktop(44)}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</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> - <th>Chrome for Android</th> - </tr> - <tr> - <td>Basic support</td> - <td>{{ CompatNo }}</td> - <td>{{ CompatNo }}</td> - <td>{{ CompatNo }}</td> - <td>{{ CompatNo }}</td> - <td>{{ CompatNo }}</td> - <td>{{ CompatNo }}</td> - <td>{{ CompatNo }}</td> - </tr> - <tr> - <td><code>entries()</code>, <code>keys()</code>, <code>values()</code>, and support of <code>for...of</code></td> - <td>{{CompatUnknown}}</td> - <td>{{ CompatGeckoMobile(44)}}</td> - <td>2.5</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - </tr> - </tbody> -</table> -</div> +{{Compat("api.Headers")}} <h2 id="相关链接">相关链接</h2> |