Google Map addDomListener function parameter

前端 未结 2 1839
清酒与你
清酒与你 2020-12-22 05:17

I want to get parameter from function

function initialize(myPin,myCen) {
   var myLatlng = new google.maps.LatLng(myPin);
   var mapOptions = { center: new g         


        
2条回答
  •  甜味超标
    2020-12-22 05:50

    you can try like this

    window.onload=function() {
        google.maps.event.initialize(myPin,MyCen);
    }
    

提交回复
热议问题