我有一个地址链接到它的按钮,如下所示:
<button>
<a ng-href="https://maps.google.com/maps?q={{Store.StoreAddress}}" target="_blank">
<span ng-bind-html="Store.StoreAddress"></span>
</a>
</button>
当点击打开谷歌地图而不是Chrome时,按钮会重定向到Firefox中的地址为什么会这样?
试试这个:
https://www.google.com/maps/search/?api=1&query={{Store.StoreAddress}}
地图网址的有用链接:https://developers.google.com/maps/documentation/urls/guide#search-action