tml5提供了相关的api 大概是这样12345function showPosition(position){ alert('经度 : ' + position.coords.latitude + ' 查看完整描述