比如下面代码中的new_location.k 和new_location.B今年都已经改了好几次了(比如需要改成new_location.A)
google.maps.event.addListener(marker, 'dragend', function() {
var new_location=marker.getPosition();
// console.log(new_location);
$("#x").attr("value",new_location.k);
$("#y").attr("value",new_location.B);
});
google.maps.event.addListener(marker, 'dragend', function() {
var new_location=marker.getPosition();
// console.log(new_location);
$("#x").attr("value",new_location.k);
$("#y").attr("value",new_location.B);
});