navigator.geolocation.getCurrentPosition always fail in chrome and firefox

后端 未结 7 803
予麋鹿
予麋鹿 2020-12-16 02:04

I got strange behavior when I tried to test my \"navigator.geolocation.getCurrentPosition\" web page. Here is my testing result and code:

my code:

fu         


        
7条回答
  •  无人及你
    2020-12-16 02:25

    I also got this message:

    message: "Network location provider at 'https://www.googleapis.com/' : Returned error code 404.", code: 2

    I could solve it by switching on my wifi adapter

提交回复
热议问题