From 218934fa2ed1c702a6d3923d2aa2cc6b43c48684 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:43:23 -0500 Subject: initial commit --- .../api/geolocationpositionerror/code/index.html | 120 +++++++++++++++++++ .../web/api/geolocationpositionerror/index.html | 128 +++++++++++++++++++++ .../geolocationpositionerror/message/index.html | 93 +++++++++++++++ 3 files changed, 341 insertions(+) create mode 100644 files/zh-tw/web/api/geolocationpositionerror/code/index.html create mode 100644 files/zh-tw/web/api/geolocationpositionerror/index.html create mode 100644 files/zh-tw/web/api/geolocationpositionerror/message/index.html (limited to 'files/zh-tw/web/api/geolocationpositionerror') diff --git a/files/zh-tw/web/api/geolocationpositionerror/code/index.html b/files/zh-tw/web/api/geolocationpositionerror/code/index.html new file mode 100644 index 0000000000..e561a780d0 --- /dev/null +++ b/files/zh-tw/web/api/geolocationpositionerror/code/index.html @@ -0,0 +1,120 @@ +--- +title: PositionError.code +slug: Web/API/GeolocationPositionError/code +translation_of: Web/API/GeolocationPositionError/code +--- +
{{APIRef("Geolocation API")}}
+ +

PositionError.code 是一個唯讀無符號整數(unsigned short)表示錯誤碼 。以下列出可能的值:

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
相對應的常數描述
1PERMISSION_DENIED取得地理資訊失敗,因為此頁面沒有獲取地理位置信息的權限。
2POSITION_UNAVAILABLE取得地理資訊失敗,因為至少有一個地理位置信息內的資訊回傳了錯誤。
3TIMEOUT取得地理資訊超過時限,利用 {{domxref("PositionOptions.timeout")}} i來定義取得地理資訊的時限。
+ +

語法

+ +
typeErr = poserr.code
+
+ +

規格

+ + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('Geolocation', '#code', 'PositionError.code')}}{{Spec2('Geolocation')}}Initial definition
+ +

瀏覽器的相容性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support5{{CompatGeckoDesktop("1.9.1")}}910.60
+ {{CompatNo}} 15.0
+ 16.0
5
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidChrome for AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatUnknown}}{{CompatUnknown}}{{CompatGeckoMobile("4")}}{{CompatUnknown}}10.60{{CompatUnknown}}
+
+ +

請參考

+ + diff --git a/files/zh-tw/web/api/geolocationpositionerror/index.html b/files/zh-tw/web/api/geolocationpositionerror/index.html new file mode 100644 index 0000000000..e721bd062c --- /dev/null +++ b/files/zh-tw/web/api/geolocationpositionerror/index.html @@ -0,0 +1,128 @@ +--- +title: PositionError +slug: Web/API/GeolocationPositionError +translation_of: Web/API/GeolocationPositionError +--- +
{{APIRef("Geolocation API")}}
+ +

PositionError 介面表示使用定位設備時發生錯誤的原因。

+ +

屬性

+ +

PositionError 介面沒有繼承任何屬性

+ +
+
{{domxref("PositionError.code")}} {{readonlyInline}}
+
回傳一個無符號整數(unsigned short)來表示錯誤碼。以下列出可能的值: + + + + + + + + + + + + + + + + + + + + + + + +
相對應的常數描述
1PERMISSION_DENIED取得地理資訊失敗,因為此頁面沒有獲取地理位置信息的權限。
2POSITION_UNAVAILABLE取得地理資訊失敗,因為至少有一個地理位置信息內的資訊回傳了錯誤。
3TIMEOUT取得地理資訊超過時限,利用{{domxref("PositionOptions.timeout")}} 來定義取得地理資訊的時限。
+
+
{{domxref("PositionError.message")}} {{readonlyInline}}
+
回傳一個可讀的 {{domxref("DOMString")}} 來描述錯誤的詳細訊息。注意規格中指出此訊息是用來除錯而非直接顯示在使用者介面。
+
+ +

方法

+ +

PositionError 介面沒有實作也沒有繼承任何方法

+ +

規格

+ + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('Geolocation', '#positionerror', 'PositionError')}}{{Spec2('Geolocation')}}Initial specification.
+ +

瀏覽器的相容性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support5{{CompatGeckoDesktop("1.9.1")}}910.60
+ {{CompatNo}} 15.0
+ 16.0
5
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidChrome for AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatUnknown}}{{CompatUnknown}}{{CompatGeckoMobile("4")}}{{CompatUnknown}}10.60{{CompatUnknown}}
+
+ +

請參考

+ + diff --git a/files/zh-tw/web/api/geolocationpositionerror/message/index.html b/files/zh-tw/web/api/geolocationpositionerror/message/index.html new file mode 100644 index 0000000000..839fb18818 --- /dev/null +++ b/files/zh-tw/web/api/geolocationpositionerror/message/index.html @@ -0,0 +1,93 @@ +--- +title: PositionError.message +slug: Web/API/GeolocationPositionError/message +translation_of: Web/API/GeolocationPositionError/message +--- +
{{APIRef("Geolocation API")}}
+ +

PositionError.message 是一個可讀的 {{domxref("DOMString")}} 來描述錯誤的詳細訊息。

+ +

語法

+ +
msg = positionError.message
+
+ +

規格

+ + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('Geolocation', '#message', 'PositionError.message')}}{{Spec2('Geolocation')}}Initial definition
+ +

瀏覽器的相容性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support5{{CompatGeckoDesktop("1.9.1")}}910.60
+ {{CompatNo}} 15.0
+ 16.0
5
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidChrome for AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatUnknown}}{{CompatUnknown}}{{CompatGeckoMobile("4")}}{{CompatUnknown}}10.60{{CompatUnknown}}
+
+ +

請參考

+ + -- cgit v1.2.3-54-g00ecf