2016年7月18日

摘要: http://mdsa.51cto.com/art/201507/484215.htm 来源 背景 开发移动端H5页面 面对不同分辨率的手机 面对不同屏幕尺寸的手机 视觉稿 在前端开发之前,视觉MM会给我们一个psd文件,称之为视觉稿。 对于移动端开发而言,为了做到页面高清的效果,视觉稿的规范往往会 阅读全文
posted @ 2016-07-18 14:37 shenggen 阅读(220) 评论(0) 推荐(0) 编辑

2016年7月17日

摘要: 闭包: 构造函数内部判断 阅读全文
posted @ 2016-07-17 23:49 shenggen 阅读(303) 评论(0) 推荐(0) 编辑

2016年7月13日

摘要: http://stackoverflow.com/questions/24976123/streaming-a-video-file-to-an-html5-video-player-with-node-js-so-that-the-video-c 项目地址 https://github.com/s 阅读全文
posted @ 2016-07-13 18:37 shenggen 阅读(284) 评论(0) 推荐(0) 编辑

2016年7月3日

摘要: git clone https://github.com/shenggen1987/mocha-demo.git npm install front 前台测试代码 backend 后台测试代码 先安装mocha npm install mocha -g mocha backend/add.test. 阅读全文
posted @ 2016-07-03 15:23 shenggen 阅读(171) 评论(0) 推荐(0) 编辑

2016年6月29日

摘要: MAC安裝CocoaPods http://www.cnblogs.com/surge/p/4436360.html 请注意我的环境,这个很重要 xcode版本7.3.2 mac 版本OS X EL Capitan v 10.11.5 pod的安装我就不说了,上面已经很详细了,接下来我说下如何使用 阅读全文
posted @ 2016-06-29 13:40 shenggen 阅读(383) 评论(0) 推荐(0) 编辑

2016年6月26日

摘要: BackstopJS源码地址 https://github.com/garris/BackstopJS 我写了一个DEMO放到github上面,https://github.com/shenggen1987/BackstopJS-demo 接下来能看到如下界面。 阅读全文
posted @ 2016-06-26 14:54 shenggen 阅读(362) 评论(0) 推荐(0) 编辑

2016年6月19日

摘要: 接下来,我们就把我们的代码运用到项目中,因为我们前台是有jquery,后台管理系统是用angularjs mock在这两种的调用方式不一样,所以我就用nginx的proxy_pass 来代理 我在项目中的访问的地址是 http://noah.baidu.com/mock/datas/list1?re 阅读全文
posted @ 2016-06-19 14:26 shenggen 阅读(524) 评论(0) 推荐(0) 编辑
摘要: 上面是我的http://rap.taobao.org 的配置,大家可以看见result|1-10,就是随机生成1到10条数据的意思 还要注意官方文档的一句话 很重要 下面我们直接上代码,注意我的访问地址变了,增加了mockjs的 阅读全文
posted @ 2016-06-19 13:13 shenggen 阅读(803) 评论(0) 推荐(0) 编辑
摘要: 在同事的推荐下,去了解了一下http://thx.github.io/RAP/study.html#,它是发现在前后端分离开发的神器 下面我们来简单上一组代码,来简单了解一下rap 阅读全文
posted @ 2016-06-19 12:28 shenggen 阅读(751) 评论(0) 推荐(0) 编辑

2016年6月9日

摘要: 自己写了几个小DEMO,请打开http://codepen.io/shenggen/ 阅读全文
posted @ 2016-06-09 22:47 shenggen 阅读(152) 评论(0) 推荐(0) 编辑

导航