摘要: //html <div class="to-top" data-id="#index"></div> //使用 返回顶部 $(".to-top").unbind("click").click(function(){ var ele=$(this); reachToPoint(ele); }); fu 阅读全文
posted @ 2018-03-09 09:18 霜~ 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 在vue-cli 构建的项目中 打开文件router/index.js 加上:mode:"history" 阅读全文
posted @ 2018-03-07 15:57 霜~ 阅读(1756) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <!--<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum- 阅读全文
posted @ 2018-03-07 12:21 霜~ 阅读(2392) 评论(0) 推荐(0) 编辑
摘要: 执行的命令都是在当前项目的根目录下执行 1、vue-cli 安装sass a、npm install style-loader css-loader sass-loader --save-dev //(--save-dev == -D) b、npm install node-sass --save- 阅读全文
posted @ 2018-03-07 12:19 霜~ 阅读(3559) 评论(0) 推荐(0) 编辑