对代码行进行折行您可以在文本字符串中使用反斜杠对代码行进行换行。下面的例子会正确地显示:document.write("Hello \World!");不过,您不能像这样折行:document.write \("Hello World!");一条语句,多个变量您可以在一条语句中声明很多变量。该语句以...
分类:
编程语言 时间:
2014-09-02 17:43:35
阅读次数:
232
一些函数方法常用的动词:get 获取/set 设置, add 增加/remove 删除create 创建/destory 移除 start 启动/stop 停止open 打开/close 关闭, read 读取/write 写入load 载入/save 保存, create 创建/destroy 销...
分类:
Web程序 时间:
2014-09-02 13:48:54
阅读次数:
159
http://www.osyunwei.com/archives/7629.html安装说明系统环境:Centos-6.5安装软件:mongodb-linux-x86_64-2.4.11.tgz下载地址:http://www.mongodb.org/downloads安装机器:192.168.2.237上传位置:/usr/local/软件安装位置:/usr/local/mongodb数据存放位置:/data/mongodb/..
分类:
数据库 时间:
2014-09-02 12:38:25
阅读次数:
255
mongodump -h dbhost -d dbname -o dbdirectory 备份mongoDB数据库重新打开 dos命令框mongodump -h 127.0.0.1:27017 -d test -o c:/test 备份数据库 test到 c:/test 备份的是bson格式,二进制...
分类:
数据库 时间:
2014-09-02 12:15:04
阅读次数:
205
for(var i=0;i<10000;i++){ db.user.insert({name:"user"+i,age:i})}添加这么多数据db.user.find({name:"user100"})没添加索引,要扫描所有数据db.user.find({name:"user100"}).expl....
分类:
数据库 时间:
2014-09-02 11:58:54
阅读次数:
202
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
For example, given n = 3, a solution set is:
"((()))", "(()())", "(())()",
"()(())", "()()()...
分类:
其他好文 时间:
2014-09-02 10:29:44
阅读次数:
186
Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))...
分类:
其他好文 时间:
2014-09-02 10:26:54
阅读次数:
217
nonsql 关系数据库 集合 表 文档 行 启动mongoDB之前首先手动创建存放MongoDB数据文件的目录,如e:\mongo_data执行命令 mongod --dbpath=e:\mongo_data这样麻烦手动创建一个后缀名为bat的文件, 把命令mongod --d...
分类:
数据库 时间:
2014-09-01 22:31:53
阅读次数:
291
PHP操作MongoDB GridFS 存储文件,如图片文件 GridFS是MongoDB的一个内置功能,它提供一组文件操作的API以利用MongoDB存储文件,GridFS的基本原理是将文件保存在两个Collection中,一个保存文件索引,一个保存文件内容,文件内容按一定大小分成若干块,每...
分类:
数据库 时间:
2014-09-01 22:24:33
阅读次数:
296
Redis学习资源:1、Redis学习手册http://www.cnblogs.com/stephen-liu74/archive/2012/03/14/2349815.html2、c#连接Redis---(1)Redis的安装与配置http://blog.csdn.net/zx1352507902...
分类:
数据库 时间:
2014-09-01 17:36:43
阅读次数:
204