我们在同一页面多次引用googleMap会出现
   googleMap重复调用的问题
    You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors.
    如果是ajax获取的,我们可以在关闭的时候做$('#google-map').remove()并且window.google = {}   这样就完美解决了(之前测试的时候只加了window.google={}也没报错了)
    现在看看  是不是就好了

相关文章: