1 回答

TA貢獻(xiàn)1890條經(jīng)驗(yàn) 獲得超9個(gè)贊
正如我在評論中所說,您只需在 2 個(gè)輸入上添加tabindex="1"和即可。tabindex="2"
工作代碼片段:
var map;
function initialize() {
// Create the map and center on deault location
map = new google.maps.Map(document.getElementById('map'), {
center: new google.maps.LatLng(0, 0),
zoom: 3
});
}
#map {
height: 120px;
width: 100%
}
<input type="text" tabindex="1">
<div id="map"></div>
<input type="text" tabindex="2">
<!-- Replace the value of the key parameter with your own API key. -->
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCkUOdZ5y7hMm0yrcCQoCvLwzdM6M8s5qk&callback=initialize" async defer></script>
- 1 回答
- 0 關(guān)注
- 125 瀏覽
添加回答
舉報(bào)