久久久久久久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'>

                        • 主站蜘蛛池模板: 罗宾被扒开腿做同人网站 | 国产精品久久久久无码av | 激情一区二区三区 | 日本成人福利 | avmans最新导航地址 | 国产精品乱码一区二三区小蝌蚪 | 成人性视频免费网站 | 日本特黄a级高清免费大片 成年人黄色小视频 | 国产精品美女久久久久久免费 | 婷婷成人在线 | 欧美在线观看一区二区 | 懂色中文一区二区三区在线视频 | 亚洲精品在线免费 | 黄色一级视频免费 | 欧美精品在线一区二区三区 | 一区二区三区av夏目彩春 | 中文成人无字幕乱码精品 | 午夜视频在线播放 | 久久99精品久久 | 国产视频一区二区 | 国产成人一区二区三区久久久 | 国产成人福利 | 亚洲男人的天堂网站 | 午夜资源| 成人久草 | 久久性色| 日韩中文字幕 | 欧美日韩高清在线观看 | 97免费在线观看视频 | 中文字幕亚洲一区 | 91精品中文字幕一区二区三区 | 亚洲欧美综合精品久久成人 | 九久久 | 一区二区三区中文字幕 | 亚洲区中文字幕 | 久久亚洲精品久久国产一区二区 | 天天影视综合 | 午夜精品一区二区三区在线视频 | 免费观看羞羞视频网站 | 青青草网| www.亚洲精品 |