在index.html中引入高德地图后,报错 ‘AMapUI‘ is not defined , ‘AMap‘ is not defined‘
先是试了把高德地图的引用放到body里发现没有用,后查明在在.eslintrc.js中配置如下
"globals": { "AMap": "true", "AMapUI":"true", },
如果没有.eslintrc.js文件则先安装一下
eslint --init
在index.html中引入高德地图后,报错 ‘AMapUI‘ is not defined , ‘AMap‘ is not defined‘
先是试了把高德地图的引用放到body里发现没有用,后查明在在.eslintrc.js中配置如下
"globals": { "AMap": "true", "AMapUI":"true", },
如果没有.eslintrc.js文件则先安装一下
eslint --init
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。