随笔分类 -  vue

vue学习
摘要:1、利用路由 2、利用directive方法 阅读全文
posted @ 2019-09-05 11:28 凉生丿墨染 阅读(2419) 评论(0) 推荐(0)
摘要:1、新建节点 const s = document.createElement("script"); 2、设置节点属性 s.type = "text/javascript"; s.src = "https://xxxxxx/js/xxxxxx.js"; 3、添加到页面内部 document.body 阅读全文
posted @ 2018-11-16 17:51 凉生丿墨染 阅读(1180) 评论(1) 推荐(0)
摘要:css部分 html部分 阅读全文
posted @ 2018-07-11 15:55 凉生丿墨染 阅读(1095) 评论(0) 推荐(0)
摘要:const router = new VueRouter({ routes:[], mode :"history"//除去#号 } 阅读全文
posted @ 2018-06-15 09:57 凉生丿墨染 阅读(2112) 评论(0) 推荐(0)
摘要:一、安装npm install -g vue-cli 推荐使用国内镜像 先设置cnpm npm install -g cnpm --registry=https://registry.npm.taobao.org 如果安装失败,可以使用 npm cache clean 清理缓存,然后再重新安装 然后 阅读全文
posted @ 2018-03-07 18:28 凉生丿墨染 阅读(258) 评论(0) 推荐(0)
摘要:1.安装node.js(http://www.runoob.com/nodejs/nodejs-install-setup.html) --以下操作在nodejs安装路径下进行(记得不要在C盘)-- 2.基于node.js,利用淘宝npm镜像安装相关依赖 在cmd里直接输入:npm install 阅读全文
posted @ 2018-03-07 18:27 凉生丿墨染 阅读(122) 评论(0) 推荐(0)
摘要:npm install vue-awesome-swiper --save //基于vue使用的轮播组件 require('swiper/dist/css/swiper.css') 阅读全文
posted @ 2017-07-26 15:21 凉生丿墨染 阅读(3072) 评论(0) 推荐(0)