上一页 1 ··· 4 5 6 7 8 9 10 下一页
摘要: 【git status 查看修改的文件路径】 git log --follow -p routes/admin/contract_operation.js 阅读全文
posted @ 2017-01-13 17:30 JonasYu 阅读(7211) 评论(0) 推荐(2) 编辑
摘要: 转载 http://www.51xuediannao.com/javascript/jzsjdhtml5ymhp_1031.html 阅读全文
posted @ 2017-01-12 15:21 JonasYu 阅读(1206) 评论(0) 推荐(0) 编辑
摘要: 1.如果要查询一些库 typings search xxx 2.安装jquery node 这样的库要这样 typings dt~node --global --save 一定要dt~xxx ,然后用全局的方式 3.1.8.0的vscode 安装了dt库后 直接就可以用了,比如import 代替 r 阅读全文
posted @ 2017-01-12 15:07 JonasYu 阅读(2472) 评论(0) 推荐(0) 编辑
摘要: 1.or 查询的格式: var condition = {$or:[{field:1},{field:2}]} 2.字符串存储日期也可以用$gt $gte $lt $lte 直接比较 var condition = { create_date:{ $gte:'2017-1-10', $lte:'20 阅读全文
posted @ 2017-01-11 10:34 JonasYu 阅读(105) 评论(0) 推荐(0) 编辑
摘要: export NODE_PATH='/Users/yuqi/.tnvm/lib/node_modules' export PATH='/Users/yuqi/.tnvm/bin':$PATH source .zshrc 貌似这个cnpm 有毛病啊,上面的也只是临时有用,难道还有什么环境变量没有设置? 阅读全文
posted @ 2017-01-10 15:24 JonasYu 阅读(845) 评论(0) 推荐(0) 编辑
摘要: mongodb 模糊查询: {people_name:{$regex:/杨/}} 更新返回更新后的数据: NewContract.findByIdAndUpdate(id, data, { new: true, select: 'attachment no' }, cb) 关联查询: People. 阅读全文
posted @ 2017-01-07 21:24 JonasYu 阅读(131) 评论(0) 推荐(0) 编辑
摘要: git 日常拉取代码,创建和切换分支: git fetch remote_repo_alias_name branch_name git merge FETCH_HEAD -m ‘xxx’ 上面是比较妥善的办法:还有git pull origin master 这种比较容易出现代码合并问题 git 阅读全文
posted @ 2017-01-07 21:23 JonasYu 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 一. 数组申明 var a = new Array(5) 会生成一个长度为5 每个元素都是undifined的数组 var a = new Array(1,2,3) 跟 var a = [1,2,3]等价 二.常用api 1. arr.shift() 删除数组头一个元素,并返回这个元素 2. arr 阅读全文
posted @ 2016-12-29 17:52 JonasYu 阅读(222) 评论(0) 推荐(0) 编辑
摘要: http://www.kuqin.com/shuoit/20150928/348317.html 这篇文章介绍了javascript 的大致历史 http://www.css88.com/archives/5710#more-5710 这篇文章说明es6 将要替代es5 写的underscore h 阅读全文
posted @ 2016-12-29 14:04 JonasYu 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 全选 反选 1 2 3 4 阅读全文
posted @ 2016-12-29 12:06 JonasYu 阅读(148) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 下一页