摘要: http://www.nodemailer.com/https://github.com/andris9/Nodemailer 阅读全文
posted @ 2014-11-25 17:18 永眠 阅读(129) 评论(0) 推荐(0) 编辑
摘要: OverviewView On GithubOne of the most frequently asked features from MEAN users is a way to scaffold their applications. As we looked for a way to hel... 阅读全文
posted @ 2014-11-25 17:12 永眠 阅读(276) 评论(0) 推荐(0) 编辑
摘要: OverviewThank you for downloading the MEAN.JS boilerplate!This simple documentation will cover the basics of developing your MEAN application.Before y... 阅读全文
posted @ 2014-11-25 17:09 永眠 阅读(594) 评论(0) 推荐(0) 编辑
摘要: 镜像使用方法(三种办法任意一种都能解决问题,建议使用第三种,将配置写死,下次用的时候配置还在):1.通过config命令npm config set registry https://registry.npm.taobao.org npm info underscore (如果上面配置正确这个命令会... 阅读全文
posted @ 2014-11-25 09:05 永眠 阅读(1167) 评论(0) 推荐(0) 编辑
摘要: IE8及更早的版本不支持 addEventListener()函数,因此需要一个标准的函数将这些差异性做封装:1 function addListener(target, type, handler) {2 if (target.addEventListener) {3 target.addEventListener(type, handler, false);4 } else if (target.attachEvent) {5 target.attachEvent("on" + type, handler);6 } else {7 ... 阅读全文
posted @ 2013-06-22 12:48 永眠 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 用数组的排序:sort()方法。 但sort()方法本身是按ASCII字符代码从小到大排列的.所以说,如果是数字的话,会出现下面这种情况:var arr = [3, 32, 3, 5];arr.sort();alert(arr.toString());//输出:2,3,32,5但是, sort()方法可以接收一个参数,就是一个比较函数;也就是说,可以自己写个比较函数;这样的话,不管要排序的数组里的值是什么类型的,都可以排序,前提是自己写的方法够好,如下:function compare(str1, str2){ if(str1 < str2){ return -1; }else if(s 阅读全文
posted @ 2013-06-08 16:03 永眠 阅读(169) 评论(0) 推荐(0) 编辑
摘要: renderer: function (val, metadata, record, rowIndex, columnIndex, store) { return '<a href="#" data-qtip="' + val + '">' + val + '</a>'; }Ext4用data-qtip,旧版本的Ext则是ext:qtip。 阅读全文
posted @ 2013-05-31 18:05 永眠 阅读(350) 评论(0) 推荐(0) 编辑
摘要: white-space : normal | pre | nowrap 取值:normal : 默认值。默认处理方式。文本自动处理换行。假如抵达容器边界内容会转到下一行 pre : 换行和其他空白字符都将受到保护。这个值需要IE6+或者 !DOCTYPE 声明为 standards-compliant mode 支持。如果 !DOCTYPE 声明没有指定为 standards-compliant mode ,此属性可以使用,但是不会发生作用。结果等同于 normal 。参阅 pre 对象 nowrap : 强制在同一行内显示所有文本,直到文本结束或者遭遇 br 对象。参阅 noWr... 阅读全文
posted @ 2013-05-31 18:01 永眠 阅读(466) 评论(0) 推荐(0) 编辑
摘要: <html> <head> <meta charset="utf-8"/> <meta http-equiv="X-UA-Compatible" content="IE=8"><script type="text/javascript" src="http://github.com/DmitryBaranovskiy/raphael/raw/master/raphael-min.js"></script> <scrip 阅读全文
posted @ 2012-06-28 10:51 永眠 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 使用RUBY安装compass sass 编译生成EXT主题时,遇到输入命令compass compile 后编译错误,提示编码格式不符.一定要通过编码格式工具使默认安装的C:/Ruby192/lib/ruby/gems/1.9.1/gems/compass-0.11.1/framework... 阅读全文
posted @ 2012-05-07 16:52 永眠 阅读(270) 评论(0) 推荐(0) 编辑