`vue-seamless-scroll` cdn引入后,提示错误`Uncaught TypeError: Vue.component is not a function`?

script 标签 https://cdn.jsdelivr.net/npm/vue-seamless-scroll@latest/dist/vue-seamless-scroll.min.js 在页面引入后提示错误 Uncaught TypeError: Vue.component is not a function

 <vue-seamless-scroll :data="listData" :class-option="classOption" class="warp">

<ul class="ul-item">

<li class="li-item" v-for="(item, index) in listData" :key="index">

{{ item }}

</li>

</ul>

</vue-seamless-scroll>


回答:

你引入的顺序是这样吗?

<script src="https://cdn.jsdelivr.net/npm/vue@2"></script>

<script src="https://cdn.jsdelivr.net/npm/vue-seamless-scroll@latest/dist/vue-seamless-scroll.min.js"></script>


回答:

`vue-seamless-scroll` cdn引入后,提示错误`Uncaught TypeError: Vue.component is not a function`?

以上是 `vue-seamless-scroll` cdn引入后,提示错误`Uncaught TypeError: Vue.component is not a function`? 的全部内容, 来源链接: utcz.com/p/934723.html

回到顶部