07 2017 档案
mongo aggregate
摘要:https://cnodejs.org/topic/59264f62855efbac2cf7a2f3 背景 现有1000条学生记录,结构如下: 需求 要求统计1000个学生的所在班级列表,列表内容如下(模拟数据,不要在意统计的合理不合理): 班级名称 | 在校人数 | 离校人数 | 没有迟到标记的在
阅读全文
mongo views
摘要:db.itemsView.drop(); db.items.aggregate([ { "$match": { "status": "true" } }, { "$unwind": { "path": "$globalOptions", "preserveNullAndEmptyArrays": t
阅读全文
angular4 开发记录
摘要:1,传值问题 page setValue: [routerLink]="['/product-details', product.id]"> ts seValue: this.router.navigate(['/product-details', id]); ts getVaue: constru
阅读全文
正则替代。。。。
摘要:/* var str="<body class='ss'>1111</body><b>3333,</b>";var html=/<(.|\n)+?>/ig; console.log(str.replace(html,"")); *//* var str="<body class='ss'>1111<
阅读全文