犯了好几次同样的错误了写下来希望下次不要再犯 需要在index.html里加上 <script src="https://webapi.amap.com/maps?v=1.4.15&key="></script>