【发布时间】:2020-11-17 21:40:36
【问题描述】:
我有经度和纬度位置,现在我想在谷歌地图中显示经度和纬度...这是一个链接,我们可以通过它免费显示它...https://www.google.com/maps/@30,70z...
$('btn-location').click(function () {
var lon = $('longitude').text(); // value here is 70
var lat = $('latitude').text(); // value here is 30
window.location.replace("https://www.google.com/maps/@" + lat + "," + lon + "z");
});
这是使用 jquery 的代码,但我在 @ 符号上遇到错误 ....
【问题讨论】:
标签: jquery asp.net .net razor asp.net-mvc-5