采用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>
下一篇: 在父页面调用子页面的JS方法