<legend id='Zhx6N'><style id='Zhx6N'><dir id='Zhx6N'><q id='Zhx6N'></q></dir></style></legend>
    1. <i id='Zhx6N'><tr id='Zhx6N'><dt id='Zhx6N'><q id='Zhx6N'><span id='Zhx6N'><b id='Zhx6N'><form id='Zhx6N'><ins id='Zhx6N'></ins><ul id='Zhx6N'></ul><sub id='Zhx6N'></sub></form><legend id='Zhx6N'></legend><bdo id='Zhx6N'><pre id='Zhx6N'><center id='Zhx6N'></center></pre></bdo></b><th id='Zhx6N'></th></span></q></dt></tr></i><div id='Zhx6N'><tfoot id='Zhx6N'></tfoot><dl id='Zhx6N'><fieldset id='Zhx6N'></fieldset></dl></div>
      • <bdo id='Zhx6N'></bdo><ul id='Zhx6N'></ul>
    2. <tfoot id='Zhx6N'></tfoot>
    3. <small id='Zhx6N'></small><noframes id='Zhx6N'>

        Safari 5 中的地理位置

        时间:2023-09-06
          <tbody id='4w0X3'></tbody>

            <bdo id='4w0X3'></bdo><ul id='4w0X3'></ul>
          • <legend id='4w0X3'><style id='4w0X3'><dir id='4w0X3'><q id='4w0X3'></q></dir></style></legend>
            • <small id='4w0X3'></small><noframes id='4w0X3'>

                <tfoot id='4w0X3'></tfoot>
                <i id='4w0X3'><tr id='4w0X3'><dt id='4w0X3'><q id='4w0X3'><span id='4w0X3'><b id='4w0X3'><form id='4w0X3'><ins id='4w0X3'></ins><ul id='4w0X3'></ul><sub id='4w0X3'></sub></form><legend id='4w0X3'></legend><bdo id='4w0X3'><pre id='4w0X3'><center id='4w0X3'></center></pre></bdo></b><th id='4w0X3'></th></span></q></dt></tr></i><div id='4w0X3'><tfoot id='4w0X3'></tfoot><dl id='4w0X3'><fieldset id='4w0X3'></fieldset></dl></div>

                  本文介绍了Safari 5 中的地理位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我有一个使用 HTML5 地理位置报告我的位置的应用程序.该应用程序在 Firefox 和 Chrome 上运行正常,但在 Safari 5 上,它说 Safari 不支持地理定位.

                  I have a application which reports my location using HTML5 geolocation. The application works correct on Firefox and Chrome, but on Safari 5, it says that Safari does not support Geolocation.

                  根据我的阅读,Safari 5 确实支持地理定位.我错过了什么?

                  From what I read, Safari 5 does support Geolocation. What am I missing?

                  感谢您的宝贵时间.

                  苏尼尔

                  推荐答案

                  看起来 Safari 地理位置只有在连接 wifi 时才有效.当通过有线连接连接时,Safari 会从地理定位函数调用错误回调.

                  Looks like Safari geolocation only works when connected with wifi. When connected with a wired connection Safari calls the error callback from the geolocation functions.

                  要对此进行测试,请在 Web 控制台中尝试:

                  To test this, try this in the web console:

                  navigator.geolocation.getCurrentPosition(
                    function(){console.log("success")},
                    function(){console.log("error")}
                  );
                  

                  对于 Safari/wifi,它会在一两秒后返回成功",但在有线连接上它会立即返回错误".

                  With Safari/wifi this returns 'success' after a second or two, but on a wired connection it returns 'error' immediately.

                  (使用 Safari 5.1 - 8.x/Mac OSX 10.7 - 10.10)

                  ( using Safari 5.1 - 8.x / Mac OSX 10.7 - 10.10 )

                  这篇关于Safari 5 中的地理位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:高精度地理定位Html5 下一篇:如何将 JavaScript 值传递给 JSF EL 和支持 bean?

                  相关文章

                  最新文章

                  <i id='dV9lR'><tr id='dV9lR'><dt id='dV9lR'><q id='dV9lR'><span id='dV9lR'><b id='dV9lR'><form id='dV9lR'><ins id='dV9lR'></ins><ul id='dV9lR'></ul><sub id='dV9lR'></sub></form><legend id='dV9lR'></legend><bdo id='dV9lR'><pre id='dV9lR'><center id='dV9lR'></center></pre></bdo></b><th id='dV9lR'></th></span></q></dt></tr></i><div id='dV9lR'><tfoot id='dV9lR'></tfoot><dl id='dV9lR'><fieldset id='dV9lR'></fieldset></dl></div>
                1. <tfoot id='dV9lR'></tfoot>

                  1. <small id='dV9lR'></small><noframes id='dV9lR'>

                    <legend id='dV9lR'><style id='dV9lR'><dir id='dV9lR'><q id='dV9lR'></q></dir></style></legend>

                      <bdo id='dV9lR'></bdo><ul id='dV9lR'></ul>