SOURCE

console 命令行工具 X clear

                    
>
console
<div id="allmap"></div>
 <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=P6QfOGrhFllpZodPYeF7RW1nN1B9rp62"></script>
<script>
   
        // 百度地图API功能
        var map = new BMap.Map("allmap");
        var point = new BMap.Point(116.317383, 39.939885);
        map.centerAndZoom(point, 15);

        //创建小狐狸
        var pt = new BMap.Point(116.317383, 39.939885);
        var myIcon = new BMap.Icon("images/s-maps.png", new BMap.Size(51, 64));
        var marker2 = new BMap.Marker(pt, {
            icon: myIcon
        }); // 创建标注
        map.addOverlay(marker2); // 将标注添加到地图中
 
</script>
#allmap { height:400px;}