vue项目接入第三方远程js文件

vue 项目中接入第三方客服js文件(带有变量的),可用iframe 引入外部html(在html设置 变量等)文件 将html文件存放在static文件下

<div>
<iframe src="../../static/plusPro.html" width="1200" height="300" frameborder="0" scrolling="auto"style="position:absolute;top: -300px;left: 0px;"></iframe>
</div>

将使用到html 嵌入到该使用到文件中 即可使用

猜你喜欢

转载自blog.csdn.net/weixin_42220039/article/details/82189474