SOURCE

  if (navigator.geolocation)
    {
    navigator.geolocation.getCurrentPosition(showPosition);
    }
    function showPosition(position)
  {
 let x=position
 console.log(x)
  }
console 命令行工具 X clear

                    
>
console