这里错在哪?popup正常显示值。但是document.getElementById 这里却直接显示${newLatLng.lng},${newLatLng.lng},不是值。
const newLatLng = e.target.getLatLng(); document.getElementById("latlng3").value ='${newLatLng.lng},${newLatLng.lng}';
marker.getPopup().setContent(`${newLatLng.lat},${newLatLng.lng}`);
應該是
`
,不是'