parseFloat(e.latlng.lat).toFixed(5) ; parseFloat(var) 转换为float (js里小数都是float,没有parseDouble的方法) var.toFixed(n) 保留n位小数