代码语言:javascript复制
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>.
<script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.15&key=你的key值"></script>
<style>
*{padding: 0px;margin: 0px;}
#container{width:100%; height: 1000px; }
</style>
</head>
<body>
<div id="container">
</div>
<script>
new AMap.Map("container");
</script>
</body>
</html>
获得key的方法: