<script src=”https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.js“></script>
<script src=”https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js“></script>
<script src=”https://cdn.bootcss.com/vue/2.6.10/vue.min.js“></script>
<script src=”https://unpkg.com/vue@2/dist/vue.js“></script>
(1)、引入样式
<link href=”https://cdn.bootcss.com/element–ui/2.4.5/theme-chalk/index.css” rel=”stylesheet“>
<link href=”https://unpkg.com/element-ui/lib/theme-chalk/index.css” rel=”stylesheet“>
(2)、引入组件库
<script src=”https://cdn.bootcss.com/element-ui/2.6.1/index.js“></script>
<script src=”https://unpkg.com/element-ui/lib/index.js“></script>
<script src=”https://cdn.jsdelivr.net/npm/echarts/dist/echarts.min.js”></script>
<script src=”https://cdn.bootcss.com/echarts/4.2.1-rc1/echarts.min.js”></script>
<script src=”https://cdn.staticfile.org/echarts/4.3.0/echarts.min.js”></script>
<script src=”https://cdn.jsdelivr.net/npm/echarts@4.3.0/dist/echarts.min.js”></script>
<script src=”https://cdnjs.cloudflare.com/ajax/libs/echarts/4.3.0/echarts.min.js”></script>
四、cdn引入axios
<script src=”https://unpkg.com/axios/dist/axios.min.js”></script>
(1)、模板一
<script src=”https://cdn.bootcss.com/vue/2.6.10/vue.min.js”></script>
<link href=”https://cdn.bootcss.com/element-ui/2.4.5/theme-chalk/index.css” rel=”stylesheet“>
<script src=”https://cdn.bootcss.com/element-ui/2.6.1/index.js”></script>
<script src=”https://cdn.bootcss.com/echarts/4.2.1-rc1/echarts.min.js”></script>
(2)、模板二
<link rel=”stylesheet” href=”https://unpkg.com/element-ui/lib/theme-chalk/index.css“>
<script src=”https://unpkg.com/vue@2/dist/vue.js”></script>
<script src=”https://unpkg.com/element-ui/lib/index.js”></script>
<script src=”https://unpkg.com/axios/dist/axios.min.js”></script>
六、引入之后未生效,可以把src中的地址复制到浏览器看有没有数据返回,若没有数据返回,可以重新选择一个其他的cdn资源。
原文地址:https://blog.csdn.net/m0_61410974/article/details/131335168
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若转载,请注明出处:http://www.7code.cn/show_12865.html
如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱:suwngjj01@126.com进行投诉反馈,一经查实,立即删除!