摘要: 絮絮叨叨在前:以前的公司,都用svn 进行代码管理。最近我那程序猿先生真的受不了我,强迫我使用tortoiseGit。 一开始对于 git 和 github 傻傻分不清,干脆自己整理资料,总结一下。 git 是一个分布式版本控制系统,不同类型的版本控制工具还有svn(集中式版本控制系统)。可以有效的 阅读全文
posted @ 2020-03-09 12:06 Microhuu 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 更新于20200220 题外话:久违了我的博客园 正题: 1、准备工作,安装环境 1、安装node 官网下载安装即可 -- 配置环境变量 2、安装npm (基于node.js 包管理器) 3、安装cnpm (淘宝镜像,防止网速问题影响) 4、安装 vue-cli 脚手架 > cnpm install 阅读全文
posted @ 2020-02-20 15:48 Microhuu 阅读(345) 评论(0) 推荐(0) 编辑
摘要: 更新于20170623 前言 最近在写一个移动项目,然后我自己发现了纠结了好久的关于border-width 的问题。起初我跟大部分前端一样认为,0.5 的 border-width 浏览器不支持。 然后我还发现 css: border-width= 1px 时,不同的手机显示出来的远远不止 1px 阅读全文
posted @ 2017-06-23 10:42 Microhuu 阅读(158) 评论(1) 推荐(0) 编辑
摘要: 更新于20161124 (均可兼容IE8以上) 1. input[type=file] 如图 上传图片前 上传图片后 2. select 如图 阅读全文
posted @ 2016-11-24 22:15 Microhuu 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 利用CNZZ对网站进行站长统计 前端页面只需要在body中添加如下代码即可: 具体CNZZ使用方法可参考:http://jingyan.baidu.com/article/870c6fc30d18e9b03fe4be16.html?st=2&os=0&bd_page_type=1&net_type= 阅读全文
posted @ 2016-08-31 09:30 Microhuu 阅读(3884) 评论(0) 推荐(0) 编辑
摘要: 1 var u = navigator.userAgent; 2 var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端 3 var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端 4 al... 阅读全文
posted @ 2016-07-20 17:19 Microhuu 阅读(6251) 评论(0) 推荐(0) 编辑
摘要: 一、数字校验表达式 1. 数字: ^[0-9]*$ 2. n位的数字: ^d{n}$ 3. 至少n位的数字:^d{n,}$ 4. m-n位的数字: ^d{m,n}$ 5. 0和非0开头的数字:^(0|[1-9][0-9]*)$ 6. 非0开头的最多带两位小数的数字: ^([1-9][0-9]*)+( 阅读全文
posted @ 2016-07-19 16:32 Microhuu 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 1 @media only screen and (max-width:340px) { 2 html,input{ 3 font-size:80%; 4 } 5 } 6 7 @media only screen and (max-width:450px) { 8 html,input{ 9 font-size:90%;... 阅读全文
posted @ 2016-05-16 14:44 Microhuu 阅读(521) 评论(0) 推荐(0) 编辑
摘要: 判断设备是PC端,还是移动端 阅读全文
posted @ 2016-05-12 20:32 Microhuu 阅读(3582) 评论(0) 推荐(0) 编辑
摘要: fis3 1、添加 fis-conf.js 到项目根目录中 fis-conf.js 内容如下 : 2、cd 目录 3、 fis3 release -r 目录 4、fis3 release -d 目录/output/ 5、fis3 server start 6、fis3 release -wL (实时 阅读全文
posted @ 2016-03-09 18:48 Microhuu 阅读(260) 评论(0) 推荐(1) 编辑