静态enableIf enableHighAccuracy set to true, and if the device can provide a more accurate location, it will get the best possible results.
Note that this may lead to slower response times or increased power consumption (such as when using GPS).
On the other hand, if set to false, it will get faster response and less power consumption.
The default value is false.
静态maximum静态 只读PERMISSION_静态 只读POSITION_静态timeout静态 只读TIMEOUT静态clear静态getCallback handler with a unique Position parameter.
可选onError: ((err: { Optional. Callback handler with an error message. Error code is one of Geolocation.PERMISSION_DENIED, Geolocation.POSITION_UNAVAILABLE, and Geolocation.TIMEOUT.
静态watchCallback handler with a unique Position parameter.
可选onError: ((err: { Optional. Callback handler with an error message. Error code is one of Geolocation.PERMISSION_DENIED, Geolocation.POSITION_UNAVAILABLE, and Geolocation.TIMEOUT.
En
A class that encapsulates Geolocation-related functionalities can check if the browser supports the Geolocation API by using
Geolocation.supported.Zh
封装了地理位置相关功能的类,可以通过
Geolocation.supported查看浏览器是否支持地理位置API。Blueprintable