- 博客(8)
- 收藏
- 关注
原创 git 常用操作
1.git 免重复输入用户名密码在命令行执行如下命令:git config --global credential.helper store 2.git把本地版本库推送到远程(远程没有本地的这个分支): git push --set-upstream origin branch60后面的分支名(branch60)必须跟本地的分支名一样3.git把本地分支和远程的一个分支建...
2018-12-24 11:52:52 305
转载 mongodb 批量更新某个字段
db.getCollection('bond_sentiment_news').find({"source" : 2,"siteUrl" : "http://www.21jingji.com/"}).forEach( function(item){ db.getCollection('bond_sentiment_news').update({"...
2018-12-21 14:31:08 2443
转载 npm install、npm install --save与npm install --save-dev区别
npm install X:会把X包安装到node_modules目录中 不会修改package.json 之后运行npm install命令时,不会自动安装Xnpm install X –save: 会把X包安装到node_modules目录中 会在package.json的dependencies属性下添加X 之后运行npm install命令时,会自动安装...
2018-12-21 09:28:24 140
转载 mongoose返回值无法修改
mongoose 查询方法 find例:db.collections.find(query,function(err,doc) { 如果var res = doc[0] 是{name:'feifei'} //假设只有一个元素 //此时你想给这个对象添加一个age属性 res.age = 16; 打印res 发现 没有age这个属性 这是因为doc[0]是一个b...
2018-12-19 11:31:58 558
转载 es6笔记
1.对象解析结构// 首先有这么一个对象const props = { className: 'tiger-button', loading: false, clicked: true, disabled: 'disabled'}当我们想要取得其中的2个值:loading与clicked时:// es5var loading = props.l...
2018-12-18 21:17:35 95
转载 Use of !module.parent in nodejs
I Found answer. You can use module.parent to determine if the current script is loaded by another script. Example is here :a.js:if (!module.parent) { console.log("I'm parent");} else { c...
2018-12-13 14:11:37 125
转载 研究生跟硕士生的区别是什么?
硕士是学位,研究生是学历,研究生有硕士研究生和博士研究生。(1)学位,是标志被授予者的受教育程度和学术水平达到规定标准的学术称号. 学士、硕士、博士是学位。(2)学历,是指人们在教育机构中接受教育的学习经历或者曾在哪些学校肄业或毕业。 研究生是学历.(研究生又分为两个层次:硕士研究生、博士研究生。) ...
2018-12-04 07:58:00 328
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人