代码之家  ›  专栏  ›  技术社区  ›  Vivart

blackberry.location.latitude:我总是得到0为什么?/

  •  0
  • Vivart  · 技术社区  · 15 年前
    <html> 
    <body> 
    <script language="Javascript"> 
    if(blackberry.location.GPSSupported) {
    blackberry.location.setAidMode(1);
    blackberry.location.refreshLocation();
    blackberry.location.onLocationUpdate(window.alert("Your new
    position is " + blackberry.location.latitude +
    " degrees latitude and " +
    blackberry.location.longitude +
    " degrees longitude."));
    }
    </script> 
    </body> 
    </html>
    

    我在设备上测试过 黑莓8800 黑莓9000 我总是 0 对于 blackberry.location.latitude blackberry.location.longitude

    注:

    • 已启用Javascript支持
    • 已启用Javascript位置支持
    1 回复  |  直到 15 年前
        1
  •  1
  •   Michael B.    15 年前

    你读过这篇文章吗 blackberryforums