diff options
author | MDN <actions@users.noreply.github.com> | 2021-10-11 00:51:25 +0000 |
---|---|---|
committer | MDN <actions@users.noreply.github.com> | 2021-10-11 00:51:25 +0000 |
commit | a101c2f3857be9d799b0ee5b2c7d04b61f9e2f18 (patch) | |
tree | 344ac9b4f45a5fd982e3a3d2f05c060d3d2e2d43 /files/zh-tw/conflicting | |
parent | b6580b050e7aaea273d6b41f0cda0fc3077afae2 (diff) | |
download | translated-content-a101c2f3857be9d799b0ee5b2c7d04b61f9e2f18.tar.gz translated-content-a101c2f3857be9d799b0ee5b2c7d04b61f9e2f18.tar.bz2 translated-content-a101c2f3857be9d799b0ee5b2c7d04b61f9e2f18.zip |
[CRON] sync translated content
Diffstat (limited to 'files/zh-tw/conflicting')
4 files changed, 391 insertions, 0 deletions
diff --git a/files/zh-tw/conflicting/web/api/geolocation/getcurrentposition/index.html b/files/zh-tw/conflicting/web/api/geolocation/getcurrentposition/index.html new file mode 100644 index 0000000000..41ac18ef05 --- /dev/null +++ b/files/zh-tw/conflicting/web/api/geolocation/getcurrentposition/index.html @@ -0,0 +1,94 @@ +--- +title: PositionOptions.enableHighAccuracy +slug: conflicting/Web/API/Geolocation/getCurrentPosition +translation_of: Web/API/PositionOptions/enableHighAccuracy +original_slug: Web/API/PositionOptions/enableHighAccuracy +--- +<div>{{APIRef("Geolocation API")}}</div> + +<p><code><strong>PositionOptions.enableHighAccuracy</strong></code> 是一個 {{domxref("Boolean")}} 的值。此值指出方法是否需要回傳最佳的結果。如果值為真且該裝置是具備提供精準位置的能力,則方法會回傳最佳結果。必須注意的是最佳結果會導致較長的回應時間或者需要更多的電力耗損 (舉例來說擁有GPS晶片的手機)。相反來說,如果值為偽,<code>機器會因為回應時間較短以及消耗較少的電力達到資源節省</code>。預設值:偽。</p> + +<h2 id="語法">語法</h2> + +<pre class="syntaxbox"><var>positionOptions</var>.enableHighAccuracy = <var>booleanValue</var> +</pre> + +<h2 id="規格">規格</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{SpecName('Geolocation', '#enablehighaccuracy', 'PositionOptions.enableHighAccuracy')}}</td> + <td>{{Spec2('Geolocation')}}</td> + <td>Initial definition</td> + </tr> + </tbody> +</table> + +<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</th> + </tr> + <tr> + <td>Basic support</td> + <td>5</td> + <td>{{CompatGeckoDesktop("1.9.1")}}</td> + <td>9</td> + <td>10.60<br> + {{CompatNo}} 15.0<br> + 16.0</td> + <td>5</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>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("4")}}</td> + <td>{{CompatUnknown}}</td> + <td>10.60</td> + <td>{{CompatUnknown}}</td> + </tr> + </tbody> +</table> +</div> + +<h2 id="請參考">請參考</h2> + +<ul> + <li><a href="/en-US/docs/WebAPI/Using_geolocation">Using geolocation</a></li> + <li>屬於{{domxref("PositionOptions")}} 。</li> +</ul> diff --git a/files/zh-tw/conflicting/web/api/geolocation/getcurrentposition_058087067b28ad25fff974fd59827fb6/index.html b/files/zh-tw/conflicting/web/api/geolocation/getcurrentposition_058087067b28ad25fff974fd59827fb6/index.html new file mode 100644 index 0000000000..59c5619cef --- /dev/null +++ b/files/zh-tw/conflicting/web/api/geolocation/getcurrentposition_058087067b28ad25fff974fd59827fb6/index.html @@ -0,0 +1,95 @@ +--- +title: PositionOptions.timeout +slug: >- + conflicting/Web/API/Geolocation/getCurrentPosition_058087067b28ad25fff974fd59827fb6 +translation_of: Web/API/PositionOptions/timeout +original_slug: Web/API/PositionOptions/timeout +--- +<div>{{APIRef("Geolocation API")}}</div> + +<p>是一個正值,它代表機器能夠等待方法回傳位置的最長時間(單位是毫秒)。預設值是<code><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Infinity">Infinity</a></code>,代表 <code>getCurrentPosition()</code> 此方法在沒有可用的位置前不會有任何回覆。</p> + +<h2 id="語法">語法</h2> + +<pre class="syntaxbox"><var>positionOptions</var>.timeout = <var>timeLength</var> +</pre> + +<h2 id="規格">規格</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{SpecName('Geolocation', '#timeout', 'PositionOptions.timeout')}}</td> + <td>{{Spec2('Geolocation')}}</td> + <td>Initial definition</td> + </tr> + </tbody> +</table> + +<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</th> + </tr> + <tr> + <td>Basic support</td> + <td>5</td> + <td>{{CompatGeckoDesktop("1.9.1")}}</td> + <td>9</td> + <td>10.60<br> + {{CompatNo}} 15.0<br> + 16.0</td> + <td>5</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>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("4")}}</td> + <td>{{CompatUnknown}}</td> + <td>10.60</td> + <td>{{CompatUnknown}}</td> + </tr> + </tbody> +</table> +</div> + +<h2 id="請參考">請參考</h2> + +<ul> + <li><a href="/en-US/docs/WebAPI/Using_geolocation">Using geolocation</a></li> + <li>屬於{{domxref("PositionOptions")}} 。</li> +</ul> diff --git a/files/zh-tw/conflicting/web/api/geolocation/getcurrentposition_5852407122355d2ab39863042583c266/index.html b/files/zh-tw/conflicting/web/api/geolocation/getcurrentposition_5852407122355d2ab39863042583c266/index.html new file mode 100644 index 0000000000..33f1d52aca --- /dev/null +++ b/files/zh-tw/conflicting/web/api/geolocation/getcurrentposition_5852407122355d2ab39863042583c266/index.html @@ -0,0 +1,107 @@ +--- +title: PositionOptions +slug: >- + conflicting/Web/API/Geolocation/getCurrentPosition_5852407122355d2ab39863042583c266 +translation_of: Web/API/PositionOptions +original_slug: Web/API/PositionOptions +--- +<div>{{APIRef("Geolocation API")}}</div> + +<p><strong><code>PositionOptions</code></strong> 是一個當作 {{domxref("Geolocation.getCurrentPosition()")}} 以及 {{domxref("Geolocation.watchPosition()")}} 參數的物件,此物件含有幾種可以設定的屬性。</p> + +<h2 id="屬性">屬性</h2> + +<p><em><code>PositionOptions</code> </em>介面沒有繼承任何屬性</p> + +<dl> + <dt>{{domxref("PositionOptions.enableHighAccuracy")}}</dt> + <dd>是一個 {{domxref("Boolean")}} 的值。此值指出方法是否需要回傳最佳的結果。如果值為真且該裝置具備提供精準位置的能力,則方法會回傳最佳結果。必須注意的是最佳結果會導致較長的回應時間或者需要更多的電力耗損 (舉例來說擁有GPS晶片的手機)。相反來說,如果值為偽,<code>機器會因為回應時間較短以及消耗較少的電力達到資源節省</code>。預設值:偽。</dd> + <dt>{{domxref("PositionOptions.timeout")}}</dt> + <dd>這是一個正值,它代表機器能夠等待方法回傳位置的最長時間(單位是毫秒)。預設值是 <code><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Infinity">Infinity</a></code>,代表 <code>getCurrentPosition()</code> 此方法在沒有可用的位置前不會有任何回覆。</dd> + <dt>{{domxref("PositionOptions.maximumAge")}}</dt> + <dd>這是一個正值,它代表可以接受暫存位置的最長時限(單位是毫秒)。如果設定為 0,代表機器必須回傳實際的當前位置而不能使用暫存位置。如果設定為 <code><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Infinity">Infinity</a></code>,機器必定會回傳暫存位置而不考慮他的時限。預設值:0。</dd> +</dl> + +<h2 id="方法">方法</h2> + +<p><code>PositionOptions</code> 介面沒有實現也沒有繼承任何方法。</p> + +<h2 id="規格">規格</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{SpecName('Geolocation', '#positionoptions', 'PositionOptions')}}</td> + <td>{{Spec2('Geolocation')}}</td> + <td>Initial definition</td> + </tr> + </tbody> +</table> + +<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</th> + </tr> + <tr> + <td>Basic support</td> + <td>5</td> + <td>{{CompatGeckoDesktop("1.9.1")}}</td> + <td>9</td> + <td>10.60<br> + {{CompatNo}} 15.0<br> + 16.0</td> + <td>5</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>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("4")}}</td> + <td>{{CompatUnknown}}</td> + <td>10.60</td> + <td>{{CompatUnknown}}</td> + </tr> + </tbody> +</table> +</div> + +<h2 id="請參考">請參考</h2> + +<ul> + <li><a href="/en-US/docs/WebAPI/Using_geolocation">Using geolocation</a></li> + <li>{{domxref("Geolocation")}} 介面使用此物件。</li> +</ul> diff --git a/files/zh-tw/conflicting/web/api/geolocation/getcurrentposition_c2c285f72be001586cb95d7989ba1b54/index.html b/files/zh-tw/conflicting/web/api/geolocation/getcurrentposition_c2c285f72be001586cb95d7989ba1b54/index.html new file mode 100644 index 0000000000..f0d16410bc --- /dev/null +++ b/files/zh-tw/conflicting/web/api/geolocation/getcurrentposition_c2c285f72be001586cb95d7989ba1b54/index.html @@ -0,0 +1,95 @@ +--- +title: PositionOptions.maximumAge +slug: >- + conflicting/Web/API/Geolocation/getCurrentPosition_c2c285f72be001586cb95d7989ba1b54 +translation_of: Web/API/PositionOptions/maximumAge +original_slug: Web/API/PositionOptions/maximumAge +--- +<div>{{APIRef("Geolocation API")}}</div> + +<p><code><strong>PositionOptions.maximumAge</strong></code> 是一個正值,它代表可以接受暫存位置的最長期限(單位是毫秒)。如果設定為 0,代表機器必須回傳實際的當前位置而不能使用暫存位置。如果設定為 <code><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Infinity">Infinity</a></code>, 機器必定會回傳暫存位置而不考慮他的期限。預設值:0。</p> + +<h2 id="語法">語法</h2> + +<pre class="syntaxbox"><var>positionOptions</var>.maximumAge = <var>timeLength</var> +</pre> + +<h2 id="規格">規格</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{SpecName('Geolocation', '#maximumage', 'PositionOptions.maximumAge')}}</td> + <td>{{Spec2('Geolocation')}}</td> + <td>Initial definition</td> + </tr> + </tbody> +</table> + +<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</th> + </tr> + <tr> + <td>Basic support</td> + <td>5</td> + <td>{{CompatGeckoDesktop("1.9.1")}}</td> + <td>9</td> + <td>10.60<br> + {{CompatNo}} 15.0<br> + 16.0</td> + <td>5</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>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("4")}}</td> + <td>{{CompatUnknown}}</td> + <td>10.60</td> + <td>{{CompatUnknown}}</td> + </tr> + </tbody> +</table> +</div> + +<h2 id="請參考">請參考</h2> + +<ul> + <li><a href="/en-US/docs/WebAPI/Using_geolocation">Using geolocation</a></li> + <li>屬於 {{domxref("PositionOptions")}} 。</li> +</ul> |