12 2015 档案
摘要:1 LotteryReceiveRecord.find({"lottery":req.params.id}).populate("user lottery").exec(function(err,result){2 _.each(result, function(r) {...
阅读全文
摘要:1 PostcardRecord.findOne({user:userid, $or : [ { at:{$gte:start.valueOf(), $lte:end.valueOf()} } , { id : id } ] },function(err,data){2 ...
阅读全文
摘要:HTML实现“摇一摇”效果html实现摇一摇并震动
阅读全文
摘要:mongoDB查询操作符;http://www.runoob.com/mongodb/mongodb-operators.html项目中需要的场景是这样的,每个人每天只能领取一张明信片,换句话说,我要在数据中,查找一条记录,记录的条件为,首先是这个用户有没有领过,没有领过直接领取,若领过,则查询领取...
阅读全文
摘要:1 2 3 4 5 Document 6 7 8 9 64 65 用的比较频繁的就是parallel的用法
阅读全文
摘要:1 2 3 4 5 6 rem phone test 7 8 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 ...
阅读全文
摘要:1 var url = require('url');2 var a = url.resolve('/one/two/three', 'four') ,3 b = url.resolve('http://example.com/', '/one'),4 c = url.resolve('http:/...
阅读全文
摘要:1 2 3 4 5 Document 6 7 8 9 222210 222211 222212 222213 222214 15 16 28 29
阅读全文
摘要:https://cnodejs.org/topic/5378720ed6e2d16149fa16bd
阅读全文
摘要:1 { 2 "__v": 1, 3 "_id": "538f5f0f6195a184108c8bd8", 4 "title": "GameTitle", 5 "item": [{ 6 "_id": "538f5f0f6195a184108c8bd6", 7 "nam...
阅读全文