- 文档是mongo中的基本单元
- 集合可以看作是没有模式的表
- 单实例可以创建多个具有单独权限的数据库
- 自带索引键"_id"
decmal: "^([+-]?)\d*.\d+$", //浮点数
decmal1: "^[1-9]\d*.\d*|0.\d*[1-9]\d*$", //正浮点数
decmal2: "^-([1-9]\d*.\d*|0.\d*[1-9]\d*)$", //负浮点数
decmal3: "^-?([1-9]\d*.\d*|0.\d*[1-9]\d*|0?.0+|0)$", //浮点数
decmal4: "^[1-9]\d*.\d*|0.\d*[1-9]\d*|0?.0+|0$", //非负浮点数(正浮点数 + 0)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var arr = [1,2,3,[1,2,3]]; | |
| var objToString = Object.prototype.toString; | |
| function getType( obj ){ | |
| var str = objToString.call(obj); | |
| str = str.split(' ')[1]; | |
| str = str.slice(0,str.length - 1); | |
| return str.toLowerCase(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .clearfix:after { | |
| visibility: hidden; | |
| display: block; | |
| font-size: 0; | |
| content: " "; | |
| clear: both; | |
| height: 0; | |
| } | |
| .clearfix{ | |
| *zoom:1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ********************* | |
| // Carousel plugin for jQuery | |
| // 2014.07.17 by Daniel.Liu | |
| // Example: | |
| // $('.box').carousel({'ad' :'.boxItem' }); // just fadeIn mode | |
| // $('.box').carousel({'ad' :'.boxItem' , time : 8000 }); // change the carousel time | |
| // $('.box').carousel({'ad' : '.boxItem' , 'ads' : '.boxInner'}); // vertical animation mode | |
| // ********************* | |
| ;(function($) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!--[if lt IE 7 ]> <html lang="zh-cmn-Hans" class="ie6 ielt8"> <![endif]--> | |
| <!--[if IE 7 ]> <html lang="zh-cmn-Hans" class="ie7 ielt8"> <![endif]--> | |
| <!--[if IE 8 ]> <html lang="zh-cmn-Hans" class="ie8"> <![endif]--> | |
| <!--[if (gte IE 9)|!(IE)]><!--> <html lang="zh-cmn-Hans"> <!--<![endif]--> |