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

  • <legend id='1tlBN'><style id='1tlBN'><dir id='1tlBN'><q id='1tlBN'></q></dir></style></legend>

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

      <small id='1tlBN'></small><noframes id='1tlBN'>

        js 地理定位但沒有提示 - 可能嗎?

        js geolocation but without prompting - possible?(js 地理定位但沒有提示 - 可能嗎?)

        <tfoot id='0O4d8'></tfoot>
            <tbody id='0O4d8'></tbody>
            <bdo id='0O4d8'></bdo><ul id='0O4d8'></ul>

            • <small id='0O4d8'></small><noframes id='0O4d8'>

                <legend id='0O4d8'><style id='0O4d8'><dir id='0O4d8'><q id='0O4d8'></q></dir></style></legend>
                1. <i id='0O4d8'><tr id='0O4d8'><dt id='0O4d8'><q id='0O4d8'><span id='0O4d8'><b id='0O4d8'><form id='0O4d8'><ins id='0O4d8'></ins><ul id='0O4d8'></ul><sub id='0O4d8'></sub></form><legend id='0O4d8'></legend><bdo id='0O4d8'><pre id='0O4d8'><center id='0O4d8'></center></pre></bdo></b><th id='0O4d8'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='0O4d8'><tfoot id='0O4d8'></tfoot><dl id='0O4d8'><fieldset id='0O4d8'></fieldset></dl></div>
                2. 本文介紹了js 地理定位但沒有提示 - 可能嗎?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  是否可以在沒有瀏覽器提示的情況下獲取用戶的地理位置?

                  Is it possible to get the geolocation of a user without the browser prompt?

                  這是來自 W3 的代碼示例

                  <script>
                     var x = document.getElementById("demo")
                  
                     function getLocation(){
                       if(navigator.geolocation){
                         navigator.geolocation.getCurrentPosition(showPosition);
                       } else {
                         x.innerHTML="Geolocation is not supported by this browser.";}
                       }
                       function showPosition(position){
                         x.innerHTML="Latitude: " + position.coords.latitude + 
                         "<br>Longitude: " + position.coords.longitude;   
                       }
                  </script>
                  

                  是否有類似 preventPrompt() 的功能?

                  Is there any preventPrompt()-like function ?

                  推薦答案

                  不,你不能阻止提示,它是一個安全功能,因為不是每個用戶都想分享它的位置.

                  No you cant prevent the prompt, its a security feature cause not every user wanna share its location.

                  來自 W3C 文檔:

                  符合本規范的實現必須提供保護用戶隱私的機制,這種機制應該確保不會通過此 API 提供任何位置信息未經用戶明確許可.

                  A conforming implementation of this specification must provide a mechanism that protects the user's privacy and this mechanism should ensure that no location information is made available through this API without the user's express permission.

                  但你可以嘗試在錯誤回調中使用geoip之類的服務.

                  But you can try to use a service like geoip in the error callback.

                  這篇關于js 地理定位但沒有提示 - 可能嗎?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  Use IScroll in Angular 2 / Typescript(在 Angular 2/Typescript 中使用 IScroll)
                  anime.js not working in Ionic 3 project(Anime.js 在 Ionic 3 項目中不起作用)
                  Ionic 3 - Update Observable with Asynchronous Data(Ionic 3 - 使用異步數據更新 Observable)
                  Angular 2: file not found on local .json file(Angular 2:在本地 .json 文件中找不到文件)
                  In Ionic 2, how do I create a custom directive that uses Ionic components?(在 Ionic 2 中,如何創建使用 Ionic 組件的自定義指令?)
                  Use ViewChild for dynamic elements - Angular 2 amp; ionic 2(將 ViewChild 用于動態元素 - Angular 2 amp;離子2)
                  1. <tfoot id='cuagC'></tfoot>
                    <i id='cuagC'><tr id='cuagC'><dt id='cuagC'><q id='cuagC'><span id='cuagC'><b id='cuagC'><form id='cuagC'><ins id='cuagC'></ins><ul id='cuagC'></ul><sub id='cuagC'></sub></form><legend id='cuagC'></legend><bdo id='cuagC'><pre id='cuagC'><center id='cuagC'></center></pre></bdo></b><th id='cuagC'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='cuagC'><tfoot id='cuagC'></tfoot><dl id='cuagC'><fieldset id='cuagC'></fieldset></dl></div>

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

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

                            <bdo id='cuagC'></bdo><ul id='cuagC'></ul>
                              <tbody id='cuagC'></tbody>
                            主站蜘蛛池模板: 亚洲综合二区 | www日本在线播放 | 日日摸天天添天天添破 | 欧美日韩国产一区 | 在线中文字幕第一页 | 欧美一区二| 国精日本亚洲欧州国产中文久久 | 蜜桃视频成人 | 国产高清一区二区 | 91视频在线| 午夜欧美日韩 | 99精品久久久 | 国产精品一区二区无线 | 最近中文字幕免费 | 欧美 日韩 亚洲91麻豆精品 | 亚洲一区二区免费 | 亚洲一级淫片 | 久久久国产一区二区三区 | 日本久久网 | 热99在线 | 欧美一级三级在线观看 | 欧美久久久久 | 成人免费av | 亚洲国产一区视频 | 一区二区三区视频在线观看 | 国产亚洲欧美另类一区二区三区 | 91在线看视频 | 久久久久久亚洲精品 | 老牛影视av一区二区在线观看 | 亚洲一区视频在线 | 欧美精品一区二区三区在线播放 | 久久国内精品 | 爱爱爱av | 性欧美精品一区二区三区在线播放 | 久久免费福利 | www.久久久久久久久久久 | 五月激情久久 | 欧美精品在线观看 | 欧美视频一区二区三区 | 午夜精品久久久久久久99黑人 | 午夜精品久久久久久久久久久久久 |