• 百度地图和js操作iframe


    document.getElementById("ifarme-63").contentWindow.document.getElementById("qksv").value = '1';
            document.getElementById("ifarme-63").contentWindow.document.getElementById("hfDateStart").value = '20150101';
            document.getElementById("ifarme-63").contentWindow.document.getElementById("txtIndex_Dn_KeyWord").value = $("#quick").val();
            document.getElementById("ifarme-63").contentWindow.document.getElementById("pc").value = "";
            document.getElementById("ifarme-63").contentWindow.document.getElementById("qkcd").click();
            document.getElementById("ifarme-63").contentWindow.document.getElementById("qkci").click();
            document.getElementById("ifarme-63").contentWindow.document.getElementById("quick").click();
    var map = new BMap.Map("map"); 
    var point = new BMap.Point(121.333502, 37.555578);  
    map.centerAndZoom(point, 13);
    map.enableScrollWheelZoom(true);
    map.clearOverlays();
        $.post("/Handler/Fdata.ashx", { med: 'Map' }, function (json) {
            var obj = eval('(' + json + ')');
            obj.forEach(function (e) {
                var marker = new BMap.Marker(new BMap.Point(e.LONGITUDE, e.LATITUDE));
                map.addOverlay(marker);
                var label = new BMap.Label(e.ACCOUNT_NAME, { offset: new BMap.Size(20, -10) });
                marker.setLabel(label);
            })
        })
    <script src="http://api.map.baidu.com/api?v=1.5&ak=cnX8K8wveewWSn8SYad9qLYH" type="text/javascript"></script>
  • 相关阅读:
    Clever Y POJ
    Searching the String ZOJ
    DNA repair HDU
    考研路茫茫——单词情结 HDU
    DNA Sequence POJ
    病毒侵袭持续中 HDU
    C语言结构体和联合体
    c语言趣味
    c语言指针
    c语言指针难点
  • 原文地址:https://www.cnblogs.com/wpcnblog/p/5327995.html
Copyright © 2020-2023  润新知