how can I get the data outside the function, i try global variable but its not working?

后端 未结 0 1466
既然无缘
既然无缘 2020-12-08 03:39

I try this method it\'s create a global variable but it\'s not working:

var long;
var lat;
function getLocation() {
if (navigator.geolocation) {
  navigator.g         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题