上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页
2016年6月29日
摘要: node + mongodb1,环境 windows 1,install nodejs 2,install npm | cd npmjs node cli.js install -gf1.1 2.node 开发nmp install express -g | nmp remove express - 阅读全文
posted @ 2016-06-29 22:20 jayruan 阅读(235) 评论(0) 推荐(0)
摘要: window.onload = function(){ var oUl = document.getElementById('ull'); var aLi = document.getElementsByTagName('li'); oUl.onmouseover = function(ev){ v 阅读全文
posted @ 2016-06-29 00:14 jayruan 阅读(211) 评论(0) 推荐(0)
2016年6月26日
摘要: http://blog.bigbinary.com/2010/03/31/regular-expressions-in-JavaScript.html ( ) [ ] { } . * ^ $ + ? \ ( ) [ ] { } . * ^ $ + ? \ ( ) [ ] { } . * ^ $ + 阅读全文
posted @ 2016-06-26 10:22 jayruan 阅读(154) 评论(0) 推荐(0)
摘要: /校验用户名:只能输入1-30个字母 function isTrueName(s) { var patrn=/^[a-zA-Z]{1,30}$/; if (!patrn.exec(s)) return false return true } //校验密码:只能输入6-20个字母、数字、下划线 fun 阅读全文
posted @ 2016-06-26 09:40 jayruan 阅读(464) 评论(0) 推荐(0)
2016年6月19日
摘要: 前端精选文摘:BFC 神奇背后的原理 BFC 已经是一个耳听熟闻的词语了,网上有许多关于 BFC 的文章,介绍了如何触发 BFC 以及 BFC 的一些用处(如清浮动,防止 margin 重叠等)。虽然我知道如何利用 BFC 解决这些问题,但当别人问我 BFC 是什么,我还是不能很有底气地解释清楚。于 阅读全文
posted @ 2016-06-19 12:43 jayruan 阅读(178) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/coco1s/p/4444383.html 最近又遇到许多垂直居中的问题,这是Css布局当中十分常见的一个问题,诸如定长定宽或不定长宽的各类容器的垂直居中,其实都有很多种解决方案。而且在Css3的flexbox出现之后,解决各类居中问题变得更加容易了。搜 阅读全文
posted @ 2016-06-19 12:19 jayruan 阅读(1194) 评论(0) 推荐(0)
2016年6月17日
摘要: function format_number(srcNumber, n) {var dstNumber = parseFloat(srcNumber);if (isNaN(dstNumber)) {return srcNumber;}if (dstNumber >= 0) {dstNumber = 阅读全文
posted @ 2016-06-17 09:55 jayruan 阅读(295) 评论(0) 推荐(0)
2016年6月10日
摘要: encodeURI("http://www.cnblogs.com/season-huang/some other thing"); //整个URL进行编码"http://www.a.com?foo="+encodeURIComponent(param); decodeURI 或 decodeURI 阅读全文
posted @ 2016-06-10 04:46 jayruan 阅读(145) 评论(0) 推荐(0)
2016年6月7日
摘要: $scope.$on('$ionicView.beforeEnter', function() { console.log('beforeEnter'); }); 复制代码 $scope.$on('$ionicView.beforeEnter', function() { console.log(' 阅读全文
posted @ 2016-06-07 22:59 jayruan 阅读(202) 评论(0) 推荐(0)
2016年6月3日
摘要: 时间 2013-12-15 16:22:00 博客园-原创精华区 原文 http://www.cnblogs.com/lvdabao/p/3475426.html 主题 AngularJS 时间 2013-12-15 16:22:00 博客园-原创精华区 原文 http://www.cnblogs. 阅读全文
posted @ 2016-06-03 00:22 jayruan 阅读(810) 评论(0) 推荐(0)
2016年5月23日
摘要: 赞 (10) 踩 (0) 阅读全文
posted @ 2016-05-23 07:36 jayruan 阅读(165) 评论(0) 推荐(0)
2016年5月16日
摘要: In a previous post about testing I mentioned that route resolves can make authoring unit tests for a controller easier. Resolves can also help the use 阅读全文
posted @ 2016-05-16 06:28 jayruan 阅读(222) 评论(0) 推荐(0)
2016年5月13日
摘要: <!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale= 阅读全文
posted @ 2016-05-13 11:40 jayruan 阅读(190) 评论(0) 推荐(0)
2016年5月7日
摘要: 阅读全文
posted @ 2016-05-07 03:39 jayruan 阅读(122) 评论(0) 推荐(0)
2016年5月5日
摘要: (function(document){ var viewport; var obj = { init:function(id){ viewport = document.querySelector("#"+id); }, addChild:function(child){ viewport.app 阅读全文
posted @ 2016-05-05 05:30 jayruan 阅读(197) 评论(0) 推荐(0)
2016年4月28日
摘要: function closeChrome(){ var browserName=navigator.appName; if (browserName=="Netscape") { window.open('','_self',''); window.close(); } else { window. 阅读全文
posted @ 2016-04-28 06:14 jayruan 阅读(203) 评论(0) 推荐(0)
2016年4月24日
摘要: 0. 注: 不同语言中的正则表达式实现都会有一些不同。下文中的代码示例除特别说明的外,都是使用JS中的正则。 1. 正则表达式关键字 ( ) [ ] { } . * ^ $ + ? \ 2. 正则表达式最常用语法 PS: pattern表示一个正则表达式 字符 说明 \ 转义符 ^ 表示非,或匹配输 阅读全文
posted @ 2016-04-24 20:56 jayruan 阅读(202) 评论(0) 推荐(0)
2016年4月23日
摘要: 怎么使用mongoose的geoNear 2014-11-26 15:05:20| 分类: mongodb | 标签:mongoose |举报|字号 订阅 下载LOFTER我的照片书 | 怎么使用mongoose的geoNear 2014-11-26 15:05:20| 分类: mongodb | 阅读全文
posted @ 2016-04-23 05:40 jayruan 阅读(824) 评论(0) 推荐(0)
摘要: https://docs.mongodb.org/manual/reference/operator/aggregation/unwind/#examples http://www.clusterdb.com/mongodb/joins-and-other-aggregation-enhanceme 阅读全文
posted @ 2016-04-23 05:21 jayruan 阅读(204) 评论(0) 推荐(0)
摘要: 查询符合条件的第一个文档(对于mongo来说不能叫记录了)db.COLLECTION_NAME.findOne({},{}); 查询符合条件的文档,并按照指定条件排序,跳过前面N1个文档,返回最多数量为N2的文档列表sort skip limit三个函数可选db.COLLECTION_NAME.fi 阅读全文
posted @ 2016-04-23 04:50 jayruan 阅读(424) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页