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

Coordinates.heading

Coordinates.heading 是個唯讀的正複數用來代表裝置前進的方向。這個數值代表你偏離北方多少度,0度代表你向著正北方,照著順時針的方向遞增(90度代表正東方,270度代表正西方)。如果Coordinates.speed 為0度,則此值為 NaN。如果這個裝置無法提供這個值則回傳 null。

語法

heading = coordinates.heading

規格

Specification Status Comment
Geolocation API
The definition of 'Coordinates.heading' in that specification.
Recommendation Initial specification.

瀏覽器的相容性

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 ?

請參考

文件標籤與貢獻者

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