2016年11月15日
摘要: var i;for (i = categoryList.length - 1; i >= 0; i -= 1) { var categoryValue=categoryList[i]; if (categoryValue.doNotDisplayForEMenu==\"true\" ) { cate 阅读全文
posted @ 2016-11-15 10:38 jayruan 阅读(128) 评论(0) 推荐(0) 编辑
摘要: lib.db.model('Stock').collection.aggregate([ { $match: stockQuery }, { $lookup: { from: 'products', localField: 'product', foreignField: '_id', as: 'p 阅读全文
posted @ 2016-11-15 10:34 jayruan 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 一,git config core.autocrlf false 二,vi .git/config[remote "origin"] url = https://github.com/iopqrst/learn20140823.git[remote "origin"]url = https://io 阅读全文
posted @ 2016-11-15 10:32 jayruan 阅读(629) 评论(0) 推荐(0) 编辑
摘要: db.items.aggregate([ { "$project": { "name": 1, "customfield": { "$cond": { "if": { "$eq": [ "$field1", "4" ] }, "then": 30, "else": { "$cond": { "if" 阅读全文
posted @ 2016-11-15 09:57 jayruan 阅读(193) 评论(0) 推荐(0) 编辑
摘要: function getURL(URL) { return new Promise(function (resolve, reject) { var req = new XMLHttpRequest(); req.open('GET', URL, true); req.onload = functi 阅读全文
posted @ 2016-11-15 04:53 jayruan 阅读(128) 评论(0) 推荐(0) 编辑