vue中使用jquery插件

 

(1)使用npm下载安装依赖

  直接npm  install  ‘插件名称’ --save   安装依赖

  在main.js中引入插件的样式  

  在页面中直接使用

(2)直接将js文件引入到项目中

  先将js文件拷到项目中

  在index.html中引入

    <script type="text/javascript" src="/public/js/dist/calendar.min.js"></script>
  填写路径的时候注意:
    

 

  在webpaclk.config中添加配置
  

  直接在页面中使用

 

 

posted on 2018-08-13 11:09  Diamond_xx  阅读(208)  评论(0编辑  收藏  举报

导航