vue使用cdn失效解决办法
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.2/vue.min.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/vue-router/3.0.1/vue-router.min.js"></scri..
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.2/vue.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue-router/3.0.1/vue-router.min.js"></script>
<script src="https://unpkg.com/element-ui@2.4.6/lib/index.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vuex/3.0.1/vuex.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.18.0/axios.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/echarts/4.1.0/echarts.min.js"></script>
<script src="/static/tinymce/tinymce.min.js"></script>
<script src="/static/dll.vendor.js"></script>
<script type='text/javascript'>
if (typeof Vue == 'undefined') {
document.write(unescape("%3Cscript src='/static/js/vue/2.5.2/vue.min.js'%3E%3C/script%3E"))
}
if (typeof VueRouter == 'undefined') {
document.write(unescape("%3Cscript src='/static/js/vue-router/3.0.1/vue-router.min.js'%3E%3C/script%3E"))
}
if (typeof Vuex == 'undefined') {
document.write(unescape("%3Cscript src='/static/js/vuex/3.0.1/vuex.min.js'%3E%3C/script%3E"))
}
if (typeof axios == 'undefined') {
document.write(unescape("%3Cscript src='/static/js/axios/0.18.0/axios.min.js'%3E%3C/script%3E"))
}
if (typeof echarts == 'undefined') {
document.write(unescape("%3Cscript src='/static/js/echarts/4.1.0/echarts.min.js'%3E%3C/script%3E"))
}
</script>
更多推荐
所有评论(0)