W3C地理定位API不适用于Safari 5 [英] W3C geolocation API not working on Safari 5

查看:88
本文介绍了W3C地理定位API不适用于Safari 5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

W3C地理定位API在safari 5中似乎不起作用。
我试过这个页面,它告诉我Geolocation不成功。



代码:
http://代码。 google.com/apis/maps/documentation/javascript/examples/map-geolocation.html



有人可以解释为什么这样吗?

解决方案

看起来像safari中的地理位置只适用于连接到wifi(不连线):
Safari 5中的地理定位


W3C geolocation API doesn't seem to work in safari 5. I tried this page and it sort of tells me that Geolocation is unsuccessful.

The code: http://code.google.com/apis/maps/documentation/javascript/examples/map-geolocation.html

can somebody explain me why this is so?

解决方案

Looks like geolocation in safari only works when you're connected to wifi (not wired): Geolocation in Safari 5

这篇关于W3C地理定位API不适用于Safari 5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆