2017年8月11日

html

摘要: scroll详解: window.innerHeight document.documentElement.clientHeight // 可视区域的高度 document.body.clientHeight // body高度 scroll的属性 scrollTop scrollHeight (s 阅读全文

posted @ 2017-08-11 16:19 前路亦是故乡 阅读(142) 评论(0) 推荐(0) 编辑

linux从零配置

摘要: 1:安装jdk apt-get install openjdk-8-jdk 下载完成后,进入/etc/profile配置环境变量$JAVA_HOME CLASSPATH PATH JRE_HOME 2:安装tomcat wget http://mirrors.tuna.tsinghua.edu.cn 阅读全文

posted @ 2017-08-11 12:48 前路亦是故乡 阅读(191) 评论(0) 推荐(0) 编辑

2017年8月10日

javascript

摘要: target和currenttarget的区别 target:事件发起者 currentTarget:事件处理者(事件监听者) eg: A.addChild(B) A是currentTarget,B是target 阅读全文

posted @ 2017-08-10 14:45 前路亦是故乡 阅读(85) 评论(0) 推荐(0) 编辑

2017年8月8日

angular-ui-switch

摘要: 代码:https://codepen.io/anon/pen/gxmWzB github: https://github.com/xpepermint/angular-ui-switch 功能类似于bootstrap的switch功能,由于数据绑定的存在,不使用对象中的方法切换,改用watch监听m 阅读全文

posted @ 2017-08-08 13:22 前路亦是故乡 阅读(180) 评论(0) 推荐(0) 编辑

2017年8月7日

emmet

摘要: 好记性不如烂笔头专题篇 1: emmet 阅读全文

posted @ 2017-08-07 17:11 前路亦是故乡 阅读(152) 评论(0) 推荐(0) 编辑

sass

摘要: 改用官方推荐的gem(需要ruby环境)安装gem install sass;再次编译没有问题 sass的命令行 *IDE的编译命令参数 --no-cache %FileName%:%FileBaseName%.css --style compact *sass文件不支持中文编译? 解决办法:找到s 阅读全文

posted @ 2017-08-07 15:40 前路亦是故乡 阅读(140) 评论(0) 推荐(0) 编辑

2017年7月31日

坐下坐下,普通操作

摘要: 安卓安装node.js (小米5可用,应该是debin)试这个之前看别的方法安装了python,不知道是否有用 阅读全文

posted @ 2017-07-31 18:58 前路亦是故乡 阅读(158) 评论(0) 推荐(0) 编辑

mocha

摘要: 先记一下,慢慢看 http://www.ruanyifeng.com/blog/2015/12/a-mocha-tutorial-of-examples.html 阅读全文

posted @ 2017-07-31 18:02 前路亦是故乡 阅读(115) 评论(0) 推荐(0) 编辑

2017年7月27日

常用操作

摘要: 创建大小为1MB的文件: mkfile -n 1M [filename] dd if=/dev/zero of=FileName2 bs=1024 count=1000 移动文件 mv [currentPath/filename] [targetPath/filename] 移动currentPat 阅读全文

posted @ 2017-07-27 12:11 前路亦是故乡 阅读(162) 评论(0) 推荐(0) 编辑

2017年7月24日

vue cropper

摘要: https://github.com/xyxiao001/vue-cropper http://xyxiao.cn/vue-cropper/example/ 阅读全文

posted @ 2017-07-24 17:08 前路亦是故乡 阅读(946) 评论(0) 推荐(0) 编辑

导航