久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

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

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

    <small id='r74hp'></small><noframes id='r74hp'>

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

      navigator.geolocation.getCurrentPosition 在 android google c

      navigator.geolocation.getCurrentPosition doesn#39;t work on android google chrome(navigator.geolocation.getCurrentPosition 在 android google chrome 上不起作用)
        <tbody id='EbW0Q'></tbody>

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

          • <bdo id='EbW0Q'></bdo><ul id='EbW0Q'></ul>
            <legend id='EbW0Q'><style id='EbW0Q'><dir id='EbW0Q'><q id='EbW0Q'></q></dir></style></legend>

              <small id='EbW0Q'></small><noframes id='EbW0Q'>

              • <tfoot id='EbW0Q'></tfoot>
              • 本文介紹了navigator.geolocation.getCurrentPosition 在 android google chrome 上不起作用的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                這段代碼:

                navigator.geolocation.getCurrentPosition(功能(位置){警報(位置.坐標.緯度,位置.坐標.經度);},功能(錯誤){警報(錯誤消息);}, {啟用高精度:真,超時:5000});

                https://jsfiddle.net/FcRpM/ 在我的筆記本電腦上的 Google Chrome 中工作,但在移動 HTC one S(安卓 4.1,GPS 關閉,通過移動網絡定位并啟用 wifi),通過 WiFi 連接到互聯網.

                1. 默認瀏覽器工作正常.
                2. 適用于 Android 的 Google Chrome、Opera、Yandex.browser 失敗并顯示超時已過期".

                其他 android 應用程序正確定位我.

                解決方案

                你可以試試這個.它似乎可以在我的設備上運行(三星 Galaxy Nexus 在 Wi-Fi 上運行 Chrome 27.0.1453.90(無數據連接,無 GPS))

                <塊引用>

                navigator.geolocation.getCurrentPosition(功能(位置){alert("Lat: " + position.coords.latitude + "
                Lon: " + position.coords.longitude);},功能(錯誤){警報(錯誤消息);}, {啟用高精度:真,超時:5000});

                問題是警報只接受字符串(以其原始形式),但是您傳遞了 2 個雙打.例如,將警告框修改為 alert('Hey', 'Hello');,輸出將僅為 Hey.將 , 更改為 +,您將獲得串聯的字符串 HeyHello.您不能在 alert 內使用 + 符號,因為等式將首先執行然后顯示.

                希望這能說明問題.

                This code:

                navigator.geolocation.getCurrentPosition(
                                    function(position) {
                                        alert(position.coords.latitude, position.coords.longitude);
                                    },
                                    function(error){
                                        alert(error.message);
                                    }, {
                                        enableHighAccuracy: true
                                        ,timeout : 5000
                                    }
                            );
                

                https://jsfiddle.net/FcRpM/ works in Google Chrome at my laptop, but on mobile HTC one S (android 4.1, GPS off, location via mobile networks and wifi enabled), connected to internet via WiFi.

                1. Default browser works fine.
                2. Google Chrome, Opera, Yandex.browser for android fails with "Timeout expired".

                other android apps locates me correct.

                解決方案

                You can try this. It seems to work on my device (Samsung Galaxy Nexus running Chrome 27.0.1453.90 on Wi-Fi (no data connection, no GPS on))

                navigator.geolocation.getCurrentPosition(
                    function(position) {
                         alert("Lat: " + position.coords.latitude + "
                Lon: " + position.coords.longitude);
                    },
                    function(error){
                         alert(error.message);
                    }, {
                         enableHighAccuracy: true
                              ,timeout : 5000
                    }
                );
                

                The problem is that alert only takes strings (in it's original form) however you are passing 2 doubles. Modify the alert box for example to alert('Hey', 'Hello'); and the output will be only Hey. Change the , to + and you'll get the concatenated strings HeyHello. You can't use a + sign inside the alert as the equation will be first executed and then displayed.

                Hope this makes it clear.

                這篇關于navigator.geolocation.getCurrentPosition 在 android google chrome 上不起作用的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                Get user#39;s current location using GPS(使用 GPS 獲取用戶的當前位置)
                IllegalArgumentException thrown by requestLocationUpdate()(requestLocationUpdate() 拋出的 IllegalArgumentException)
                How reliable is LocationManager#39;s getLastKnownLocation and how often is it updated?(LocationManager 的 getLastKnownLocation 有多可靠,多久更新一次?)
                How to detect Location Provider ? GPS or Network Provider(如何檢測位置提供者?GPS 或網絡提供商)
                Get current location during app launch(在應用啟動期間獲取當前位置)
                locationManager.getLastKnownLocation() return null(locationManager.getLastKnownLocation() 返回 null)

                    • <bdo id='Hqv7u'></bdo><ul id='Hqv7u'></ul>

                      • <i id='Hqv7u'><tr id='Hqv7u'><dt id='Hqv7u'><q id='Hqv7u'><span id='Hqv7u'><b id='Hqv7u'><form id='Hqv7u'><ins id='Hqv7u'></ins><ul id='Hqv7u'></ul><sub id='Hqv7u'></sub></form><legend id='Hqv7u'></legend><bdo id='Hqv7u'><pre id='Hqv7u'><center id='Hqv7u'></center></pre></bdo></b><th id='Hqv7u'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Hqv7u'><tfoot id='Hqv7u'></tfoot><dl id='Hqv7u'><fieldset id='Hqv7u'></fieldset></dl></div>
                          <tbody id='Hqv7u'></tbody>
                        <legend id='Hqv7u'><style id='Hqv7u'><dir id='Hqv7u'><q id='Hqv7u'></q></dir></style></legend>
                          <tfoot id='Hqv7u'></tfoot>
                        • <small id='Hqv7u'></small><noframes id='Hqv7u'>

                        • 主站蜘蛛池模板: 国产精品日韩 | 精品亚洲一区二区三区 | 国产精彩视频在线观看 | 国产精品久久久久久一区二区三区 | 亚洲 中文 欧美 日韩 在线观看 | 国产精品久久久久久久白浊 | 一级做a爰片性色毛片16 | 久久久久久久一区二区 | 国产精品视频专区 | 9191成人精品久久 | 欧美激情综合 | 日韩电影免费在线观看中文字幕 | 在线观看视频亚洲 | 久久精品国产亚洲一区二区 | 国产精品久久久久久久久久久免费看 | 在线观看不卡av | 久久久久久久久精 | 欧美一级毛片免费观看 | 免费看国产一级特黄aaaa大片 | 日韩在线视频一区 | 国产午夜精品一区二区三区在线观看 | 日本欧美黄色片 | 在线视频一区二区三区 | 欧美精品一区二区在线观看 | 亚洲 欧美 日韩 在线 | 91精品国产色综合久久 | 欧美vide| 四虎网站在线观看 | 国产精品久久久乱弄 | 国产精品片| 免费视频久久久久 | 狠狠色综合欧美激情 | 免费特黄视频 | 在线视频一区二区三区 | 久久久高清| 精品欧美乱码久久久久久 | 国产精品一区二区三区四区 | 亚洲国产精品99久久久久久久久 | 国产性色视频 | 91麻豆精品国产91久久久更新资源速度超快 | 国产色网站 |