2015年12月28日

pushState

摘要: 相关文档:https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Manipulatingthebrowser_history实现目标页面的跳转(前进后退,点击等)不重新请求页面页面URL与页面展现内容一致(符合人们对传统网页的认识)在不... 阅读全文

posted @ 2015-12-28 16:47 晓风暗月 阅读(1490) 评论(0) 推荐(0) 编辑

2015年9月28日

npm常用命令

摘要: npm是一个node包管理和分发工具,已经成为了非官方的发布node模块(包)的标准。有了npm,可以很快的找到特定服务要使用的包,进行下载、安装以及管理已经安装的包。1、npm install moduleNames:安装Node模块安装完毕后会产生一个node_modules目录,其目录下就是安... 阅读全文

posted @ 2015-09-28 09:58 晓风暗月 阅读(98) 评论(0) 推荐(0) 编辑

2015年9月24日

前端组件库

摘要: 前端组件库搭建web app常用的样式/组件等收集列表(移动优先)0. 前端自动化(Workflow)前端构建工具Yeoman – a set of tools for automating development workflowgulp – The streaming build systemg... 阅读全文

posted @ 2015-09-24 14:50 晓风暗月 阅读(238) 评论(0) 推荐(0) 编辑

2015年9月15日

HTTP 错误码备查

摘要: (1字头) 这一类型的状态码,代表请求已被接受,需要继续处理。这类响应是临时响应,只包含状态行和某些可选的响应头信息,并以空行结束。由于 HTTP/1.0 协议中没有定义任何 1xx 状态码,所以除非在某些试验条件下,服务器禁止向此类客户端发送 1xx 响应。100 Continue 客户端应当... 阅读全文

posted @ 2015-09-15 10:25 晓风暗月 阅读(174) 评论(0) 推荐(0) 编辑

2015年9月14日

media-query

摘要: /* Desktops and laptops ----------- */@media only screen and (min-width:1224px) { }/* Large screens ----------- */@media only screen and (min-width:18... 阅读全文

posted @ 2015-09-14 14:47 晓风暗月 阅读(129) 评论(0) 推荐(0) 编辑

2015年8月20日

Mac OS下安装MongoDB

摘要: mac下安装mongoDB一种是通过HomeBrew,另一种是直接官网下载程序包设置,在此我们说的是后一种。主要步骤是:下载解压、创建文件夹、设置权限 1、从官网上下载,目前最新版本是mongodb-osx-x86_64-3.0.5,将该文件解压至一个你希望放置的目录。这里假设放置在/users/... 阅读全文

posted @ 2015-08-20 14:24 晓风暗月 阅读(287) 评论(0) 推荐(0) 编辑

MongoDB : couldn’t open /data/db/yourdb.ns errno:13 Permission denied

摘要: Starting MongoDB server, it shows error “Permission denied” on one of the database and shutdown the server automatically.$ mongodFri Mar 8 22:54:46 [... 阅读全文

posted @ 2015-08-20 13:36 晓风暗月 阅读(1128) 评论(0) 推荐(0) 编辑

2015年8月19日

Mac OS下安装Brew

摘要: 终端中输入curl-LsSfhttp://github.com/mxcl/homebrew/tarball/master|sudotarxvz-C/usr/local--strip1即可。输入登陆密码开始安装完成了之后先更新brew,需要等很久。。。删除和卸载软件包如下:sudobrewinstal... 阅读全文

posted @ 2015-08-19 16:46 晓风暗月 阅读(330) 评论(0) 推荐(0) 编辑

2015年6月17日

前端跨域处理

摘要: 假设 A: home.xxx.com --------跨域调用-------> api.xxx.comhome.xxx.com 调用:otherWindow.postMessage( message, targetOrigin );otherWindow:另一个的window对象的引用,这个引用可... 阅读全文

posted @ 2015-06-17 11:42 晓风暗月 阅读(150) 评论(0) 推荐(0) 编辑

导航