我有一個iframe地圖,它的座標和兩個輸入值和它們的值,這些值來自數據庫,我想將這些值傳遞給地圖座標,我該怎麼做?這裏是我的代碼:將經緯度和長度傳遞給iframe
<iframe width="100%" height="600" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?q='+MYLAT+','+MYLONG+'&hl=es;z=14&output=embed"></iframe>
<form>
<div class="form-group">
<input type="hidden" class="form-control" value="Latitude" id="lat">
</div>
<div class="form-group">
<input type="hidden" class="form-control" value="Longitude" id="long">
</div>
</form>
的src一個鈕!? – M0ns1f