摘要: express4以上启动使用的是 : npm start 使用 supervisor 实时监控程序的变化,避免频繁重启服务 npm install supervisor -g 然后在 package.json 中 node ./bin/www 更改为 supervisor ./bin/www 然后在启动服务 : npm start 即可 阅读全文
posted @ 2016-03-15 18:38 ayguo 阅读(316) 评论(0) 推荐(0) 编辑
摘要: - 换行: 在插入处按两个以上的空格后回车。 - 区块表示: `>`- 无序列表: `*/+/-`(用空格隔开)- 横线: --- (大于3个-)- 链接:`[文字](链接地址"title")`- 斜体:`*hello* 或 _hello_`- 加粗:`**hello** 或 __hello__`... 阅读全文
posted @ 2015-05-06 15:24 ayguo 阅读(114) 评论(0) 推荐(0) 编辑
摘要: Chrome支持input=[type=text]占位文本属性,但下列CSS样式却不起作用:CSSinput[placeholder], [placeholder], *[placeholder] { color:red !important;}HTML运行结果值还是灰色,Color:red没有... 阅读全文
posted @ 2014-11-03 10:53 ayguo 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 效果如图:注意点: 1,input表单里面有一个图标,给input加一个背景图片,然后在加一个padding调整。 2,当input框获取到焦点时,输入框border显示蓝色(或其他颜色)。 form表单 姓名 ... 阅读全文
posted @ 2014-10-29 18:17 ayguo 阅读(818) 评论(0) 推荐(0) 编辑
摘要: HTML中a标签中href="#xxx",当点击后,页面会跳转到标签中id="xxx"的地方。同时,在URL上的后面会看到加上了#xxx,这样直接改变URL中#后面的值,然后页面就可以跳转到标签中id为这个值的地方。测试代码: Document tab1 tab2 t... 阅读全文
posted @ 2014-10-29 15:20 ayguo 阅读(1074) 评论(0) 推荐(0) 编辑
摘要: /* 时间戳转换为日期格式 * 使用ayguo.time_format('Y-m-d H:i:s',t)等同PHP的date() */time_format : function(str,t){ if(!t) return ''; var d = new Date(); d... 阅读全文
posted @ 2014-09-10 11:28 ayguo 阅读(448) 评论(0) 推荐(0) 编辑
摘要: 播放mp3 mp3 阅读全文
posted @ 2014-08-22 13:46 ayguo 阅读(365) 评论(0) 推荐(0) 编辑
摘要: 自定义事件 阅读全文
posted @ 2014-06-18 22:36 ayguo 阅读(176) 评论(0) 推荐(0) 编辑
摘要: Document button 阅读全文
posted @ 2014-05-31 23:11 ayguo 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 1Underscore 中文文档 github地址 英文文档2Express中文文档 github地址3Backbone中文文档Backbone英文文档 github地址4Jquery中文文档(适合1.0--2,0)5Bootstrap中文6Less中文7NodeJs中文API8node.js相关的... 阅读全文
posted @ 2014-05-28 18:29 ayguo 阅读(598) 评论(0) 推荐(0) 编辑