摘要:
在学习使用Mongodb中,对map和reduce的定义,以及对 mapReduce() 方法的调用:>map #在直接输入map时会出现一个'map is not defined'的异常错误!>reduce #同上根据mongodb的handbook来参考,需要自定义这两个函数:>mapFun1 function() { eimt(this.name,{count:1};}>reduceFun1 function(key,value) { var result={count:0}; for (var i=0;idb.person.mapReduce(m 阅读全文
posted @ 2014-01-14 16:46 疯狂的老爹 阅读(157) 评论(0) 推荐(0)
浙公网安备 33010602011771号