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