chrome while阻塞后 navigator.geolocation.getCurrentPosition 回调丢失

navigator.geolocation.getCurrentPosition(function(position){

  //chrome下这会不触发 - -!  

  //如果是setTimeout注册事件是会正常的

})

while (name = window.prompt (show_word || 'input you nicky') , !name);

//如果不在while里也是正常的

 

posted on 2013-05-16 16:57  雨弓  阅读(1470)  评论(0)    收藏  举报