浏览器如何知道我在哪里?
How can the browser tell where I am?
完全基于注册的IP地址?如果我在代理后面怎么办?
Totally based on registered IP address? What if I'm behind a proxy?
这取决于浏览器及其设置.它可能使用 GPS、基于 WLAN AP 的位置、IP 位置或任何其他可以想到的定位方法.
That would depend on the browser and its settings. It might use GPS, WLAN AP-based location, IP location, or any other conceivable method of locating itself.
浏览器在您的本地计算机上运行,因此即使您使用代理,它也应该能够找到您的实际 IP 地址(除非安全功能阻止将其发送到地理定位服务器以进行查找).是否有任何浏览器足够聪明,可以处理在 NAT 后面(本地机器具有私有 IP)并查找网关的 IP 地址,我不知道.
The browser runs on your local machine, so even if you're behind a proxy, it should be able to find your actual IP address (unless security features prevent it from being sent for lookup to a geolocation server). Whether any browser is smart enough to handle being behind a NAT (with the local machine having a private IP) and looking up the gateway's IP address, that I don't know.
这篇关于HTML5 地理位置功能如何工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
Angular 2:在本地 .json 文件中找不到文件Angular 2: file not found on local .json file(Angular 2:在本地 .json 文件中找不到文件)
在 Ionic 2 中,如何创建使用 Ionic 组件的自定义指In Ionic 2, how do I create a custom directive that uses Ionic components?(在 Ionic 2 中,如何创建使用 Ionic 组件的自定义指令?)
如何在 ionic2 中的 pop() 之后重新加载离子页面How to reload the ion-page after pop() in ionic2(如何在 ionic2 中的 pop() 之后重新加载离子页面)
Javascript 将 URL 转换为 BASE64 图像Javascript Convert an URL to a BASE64 Image(Javascript 将 URL 转换为 BASE64 图像)
使用模式 Angular 2 进行输入验证Input validation with pattern Angular 2(使用模式 Angular 2 进行输入验证)
如何在角度2中动态更改css类名How to change the css class name dynamically in angular 2(如何在角度2中动态更改css类名)