From a101c2f3857be9d799b0ee5b2c7d04b61f9e2f18 Mon Sep 17 00:00:00 2001 From: MDN Date: Mon, 11 Oct 2021 00:51:25 +0000 Subject: [CRON] sync translated content --- files/zh-cn/web/api/positionoptions/index.html | 112 --------------------- .../web/api/positionoptions/timeout/index.html | 95 ----------------- files/zh-cn/web/api/storageestimate/index.html | 103 ------------------- 3 files changed, 310 deletions(-) delete mode 100644 files/zh-cn/web/api/positionoptions/index.html delete mode 100644 files/zh-cn/web/api/positionoptions/timeout/index.html delete mode 100644 files/zh-cn/web/api/storageestimate/index.html (limited to 'files/zh-cn/web/api') diff --git a/files/zh-cn/web/api/positionoptions/index.html b/files/zh-cn/web/api/positionoptions/index.html deleted file mode 100644 index 43932e7322..0000000000 --- a/files/zh-cn/web/api/positionoptions/index.html +++ /dev/null @@ -1,112 +0,0 @@ ---- -title: PositionOptions -slug: Web/API/PositionOptions -tags: - - API - - Geolocation API - - Interface - - NeedsTranslation - - Reference - - TopicStub -translation_of: Web/API/PositionOptions ---- -
{{APIRef("Geolocation API")}}
- -

PositionOptions 是一个作为 Geolocation.getCurrentPosition()方法 以及 Geolocation.watchPosition() 方法参数的选项,此选项含有3种可以设置的属性。

- -

属性

- -

PositionOptions 接口不继承任何属性。

- -
-
{{domxref("PositionOptions.enableHighAccuracy")}}
-
是一个 {{domxref("Boolean")}} 值。这个布尔值用来表明应用是否使用其最高精度来表示结果。如果值为 true ,同时设备能够提供一个更精确的位置,那么设备就会使用这个位置。注意,这会导致较慢的响应时间或者增加电量消耗(比如对于支持gps的移动设备来说)。如果值为false ,设备会通过更快响应以及/或者使用更少的电量等方法来尽可能的节约资源。默认值: false
-
{{domxref("PositionOptions.timeout")}}
-
的值是一个正的 long 值。它表明的是设备必须在多长时间(单位毫秒)内返回一个位置。默认值是 Infinity,意思是获取到一个位置之后, getCurrentPosition() 才会返回一个值。
-
{{domxref("PositionOptions.maximumAge")}}
-
是一个正的 long 值。它表明可以返回多长时间(即最长年龄,单位毫秒)内的可获取的缓存位置。如果设置为 0, 说明设备不能使用一个缓存位置,而且必须去获取一个真实的当前位置。如果设置为 Infinity ,那么不管设置的最长年龄是多少,设备都必须返回一个缓存位置。默认值:0。
-
- -

方法

- -

PositionOptions 接口既不实现,也不继承任何方法。

- -

规范

- - - - - - - - - - - - - - - - -
规范状态Commet
{{SpecName('Geolocation', '#positionoptions', 'PositionOptions')}}{{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}}
-
- -

See also

- - diff --git a/files/zh-cn/web/api/positionoptions/timeout/index.html b/files/zh-cn/web/api/positionoptions/timeout/index.html deleted file mode 100644 index 0362db0249..0000000000 --- a/files/zh-cn/web/api/positionoptions/timeout/index.html +++ /dev/null @@ -1,95 +0,0 @@ ---- -title: PositionOptions.timeout -slug: Web/API/PositionOptions/timeout -tags: - - API -translation_of: Web/API/PositionOptions/timeout ---- -
{{APIRef("Geolocation API")}}
- -

PositionOptions.timeout 属性是一个 long 型正数,它代表机器能够等待方法返回位置的最长时间(单位是毫秒)。预设值是 Infinity,这意味着 getCurrentPosition () 此方法在没有可用的位置前不会有任何回复。

- -

语法

- -
positionOptions.timeout = timeLength
-
- -

规范

- - - - - - - - - - - - - - - - -
SpecificationStatusComment
{{SpecName('Geolocation', '#timeout', 'PositionOptions.timeout')}}{{Spec2('Geolocation')}}初始定义
- -

浏览器兼容性

- -

{{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-cn/web/api/storageestimate/index.html b/files/zh-cn/web/api/storageestimate/index.html deleted file mode 100644 index 74e0fa95cc..0000000000 --- a/files/zh-cn/web/api/storageestimate/index.html +++ /dev/null @@ -1,103 +0,0 @@ ---- -title: StorageEstimate -slug: Web/API/StorageEstimate -translation_of: Web/API/StorageEstimate ---- -
{{securecontext_header}}{{APIRef("Storage")}}
- -
 
- -

StorageEstimate 提供对你的域名或Web app的数据存储空间总量和已用量的估计值,该对象实例由{{domxref("StorageManager")}}的{{domxref("StorageManager.estimate", "estimate()")}} 方法返回的{{jsxref("Promise")}}返回.

- -

这些值仅为估计值有多种原因,既有对性能的考虑,也有防止将其作为指纹(fingerprinting)的目的.详情请参看属性.

- -

属性

- -

该对象目前总是同时包含以下两个属性.

- -
-
{{domxref("StorageEstimate.quota", "quota")}} {{securecontext_inline}}
-
用户设备为你的域名或Web app预留的存储空间总大小,且该大小为估计值.虽然实际上可能有比这更多的存储空间,但这时你不应使用那多余的部分.
-
{{domxref("StorageEstimate.usage", "usage")}} {{securecontext_inline}}
-
你的域名或Web app已经使用的存储空间大小,且该大小为估计值.剩余可用空间请综合quota属性计算.
-
- -

规范

- - - - - - - - - - - - - - -
SpecificationStatusComment
{{SpecName('Storage', '#dictdef-storageestimate', 'StorageEstimate')}}{{Spec2('Storage')}}Initial definition.
- -

浏览器兼容性

- -
{{CompatibilityTable}}
- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerMicrosoft EdgeOperaSafari (WebKit)
Basic support{{CompatChrome(55)}}{{CompatGeckoDesktop(57)}}{{CompatUnknown}}{{CompatUnknown}}{{CompatOpera(42)}}{{CompatUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureAndroid WebviewChrome for AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatUnknown}}{{CompatChrome(55)}}{{ CompatGeckoMobile(57)}}{{CompatUnknown}}{{CompatOperaMobile(42)}}{{CompatUnknown}}
-
- -

相关链接

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