有时候,.vue文件不能方便的使用js插件,所以必须按原生的html来做.
新建html文件,页面必须放在static 下,这个地方坑了我好久
![](https://img-blog.csdnimg.cn/img_convert/89d8b45accbb771d27b056a0d444cc81.png)
2.引用html文件
<template>
<web-view src="/static/htmlMap/index.html"></web-view>
</template>
有时候,.vue文件不能方便的使用js插件,所以必须按原生的html来做.
新建html文件,页面必须放在static 下,这个地方坑了我好久
2.引用html文件
<template>
<web-view src="/static/htmlMap/index.html"></web-view>
</template>