【发布时间】:2012-09-16 06:10:05
【问题描述】:
我正在尝试在 chrome 扩展中使用以下功能:
function findMe(){
if( navigator.geolocation ){
navigator.geolocation.getCurrentPosition(alert("YES"), alert("NO"));
}
}
我收到“NO”警报,getCurrentPosition 不起作用,如何解决?
【问题讨论】:
-
在这篇文章中查看我的答案:stackoverflow.com/questions/13386996/…
标签: javascript google-chrome-extension geolocation