Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

PositionOptions.maximumAge

PositionOptions.maximumAge 是一個正值,它代表可以接受暫存位置的最長期限(單位是毫秒)。如果設定為 0,代表機器必須回傳實際的當前位置而不能使用暫存位置。如果設定為 Infinity, 機器必定會回傳暫存位置而不考慮他的期限。預設值:0。

語法

positionOptions.maximumAge = timeLength

規格

Specification Status Comment
Geolocation API
The definition of 'PositionOptions.maximumAge' in that specification.
Recommendation Initial definition

瀏覽器的相容性

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 5 3.5 (1.9.1) 9 10.60
No support 15.0
16.0
5
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? ? 4.0 (4) ? 10.60 ?

請參考

文件標籤與貢獻者

 此頁面的貢獻者: alphan_chen, yachiehwu
 最近更新: alphan_chen,