0
我想在浏览器扩展程序使用以下功能:navigator.geolocation.getCurrentPosition在Chrome扩展
function findMe(){
if(navigator.geolocation){
navigator.geolocation.getCurrentPosition(alert("YES"), alert("NO"));
}
}
我也得到警告“NO”,getCurrentPosition这么想的工作,如何解决呢?
见我的回答这个帖子: http://stackoverflow.com/questions/13386996/navigator-geolocation-getcurrentposition -not-updates-in-chrome-mobile/17540468#17540468 – surfealokesea