采用CSS覆蓋的方法就可以了,但是官方是不允許這麼做的,參考:http://developer.baidu.com/map/question.htm
復制代碼 代碼如下:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>javascript移除百度地圖LOGO和版權信息</title>
<script type="text/javascript" src="//jquery.js"></script>
<script src="http://api.map.baidu.com/api?v=1.3" type="text/javascript"></script>
<script type="text/javascript">
function initialize() {
var mp = new BMap.Map('map');
mp.centerAndZoom(new BMap.Point(121.491, 31.233), 11);
}
window.onload = initialize;
</script>=
<style type="text/css">
.anchorBL{
display:none;
}
</style>
</head>
<body>
<input type="button" onclick="$('#map div.anchorBL').hide();" value="移除地圖LOGO和版權說明"/>
<div id="map" style="width:400px;height:40px"></div>
</body>
</html>