【问题标题】:Is there any way to locate the current location of the user(browser other than mozilla and chrome)有没有办法定位用户的当前位置(除了mozilla和chrome之外的浏览器)
【发布时间】:2012-03-30 11:14:18
【问题描述】:

我的问题是获取用户当前的经纬度。 我已经尝试过 Geoloaction API,它在 Mozilla(3.6 测试)和谷歌浏览器中也能正常工作。 但在 IE6、IE7 中失败(我只测试了这些版本)我认为是因为缺乏 HTML5 支持,但在 safari 中也失败了。除了这个还有什么办法吗?是否有任何 jquery 库可以解决我的问题?

【问题讨论】:

    标签: internet-explorer safari geolocation userlocation currentlocation


    【解决方案1】:

    这听起来像是 Modernizr 和 Webshims Lib 的工作...

    这两个 javascript 库的组合为您提供了旧浏览器中 HTML5 功能(例如地理定位)的实现。 Webshims Lib 还提供了很好的地理定位 API demo。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-08-22
      • 2012-08-08
      • 1970-01-01
      • 1970-01-01
      • 2014-03-02
      相关资源
      最近更新 更多