如何从Vue项目中的Landkit导入js文件

时间:2020-04-09 18:59:43

标签: javascript html css vue.js bootstrap-4

实际上,我在一个中间项目中工作,并且使用了带有Landkit引导程序的vue,但是我不明白为什么无法使用Landkit组件的javascript Comportament。我需要导入以下链接。通常我会在index.html文件中导入文件,但是在新版本的vue-cli中我没有此文件。有人可以帮我吗?

<script src="./assets/libs/jquery/dist/jquery.min.js"></script>
    <script src="./assets/libs/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
    <script src="./assets/libs/flickity/dist/flickity.pkgd.min.js"></script>
    <script src="./assets/libs/flickity-fade/flickity-fade.js"></script>
    <script src="./assets/libs/aos/dist/aos.js"></script>
    <script src="./assets/libs/smooth-scroll/dist/smooth-scroll.min.js"></script>
    <script src="./assets/libs/jarallax/dist/jarallax.min.js"></script>
    <script src="./assets/libs/jarallax/dist/jarallax-video.min.js"></script>
    <script src="./assets/libs/jarallax/dist/jarallax-element.min.js"></script>
    <script src="./assets/libs/typed.js/lib/typed.min.js"></script>
    <script src="./assets/libs/countup.js/dist/countUp.min.js"></script>
    <script src="./assets/libs/highlightjs/highlight.pack.min.js"></script>
    <script src="./assets/libs/@fancyapps/fancybox/dist/jquery.fancybox.min.js"></script>
    <script src="./assets/libs/isotope-layout/dist/isotope.pkgd.min.js"></script>
    <script src="./assets/libs/imagesloaded/imagesloaded.pkgd.min.js"></script>

1 个答案:

答案 0 :(得分:0)

在您的app.js文件中尝试以下方法

import $ from '@/assets/libs/jquery/dist/jquery.min.js'