--- title: Coordinates.speed slug: Web/API/GeolocationCoordinates/speed translation_of: Web/API/GeolocationCoordinates/speed ---
Coordinates.speed
回傳唯讀的正複數代表速度,單位為公尺/秒。 如果裝置無法測量這個值則回傳 null。
speed = coordinates.speed
Specification | Status | Comment |
---|---|---|
{{SpecName('Geolocation', '#speed', 'Coordinates.speed')}} | {{Spec2('Geolocation')}} | Initial specification. |