上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
摘要: 1.minio的启动命令: minio server --address 127.0.0.1:9000 /Users/x/blob 2.配置文件位于: {HOME}/.minio 文件夹下面 其中的accsskey 和 secretKey 是在启动minio的时候自动生成的. 阅读全文
posted @ 2017-06-21 10:22 jay- 阅读(598) 评论(0) 推荐(0) 编辑
摘要: 一般采用的是set方法,这个方法只针对model.save()和create()适用,而对于update,findOneAndUpdate等不适用 阅读全文
posted @ 2017-04-26 15:20 jay- 阅读(706) 评论(0) 推荐(0) 编辑
摘要: 目录 Class: Server new Server(httpServer[, options]) new Server(port[, options]) new Server(options) server.sockets server.engine.generateId server.serv 阅读全文
posted @ 2017-04-19 19:10 jay- 阅读(501) 评论(0) 推荐(0) 编辑
摘要: 1.go for循环,其中for 循环的 range 格式可以对 slice、map、数组、字符串等进行迭代循环(map就是字典) 2.type 类型的定义 for i := range ss { ss[i] += 10 fmt.Println(i); i是索引的值0,1 } for i := ra 阅读全文
posted @ 2017-04-19 09:35 jay- 阅读(314) 评论(0) 推荐(0) 编辑
摘要: golang不支持方法重载,只支持方法重写 golang方法重写需要的条件: 1.不能在用一个package写相同名称的方法,即使参数不相同(因为go没有方法重载) 阅读全文
posted @ 2017-04-19 09:26 jay- 阅读(1059) 评论(0) 推荐(0) 编辑
摘要: package.json Git urls can be of the form: The commit-ish can be any tag, sha, or branch which can be supplied as an argument to git checkout. The defa 阅读全文
posted @ 2017-04-01 14:11 jay- 阅读(1853) 评论(0) 推荐(0) 编辑
摘要: 1.使用代理npm 安装某个module https_proxy=http://代理地址 npm install module 2.设置configure npmrc Files The four relevant files are: per-project configuration file 阅读全文
posted @ 2017-04-01 13:46 jay- 阅读(3137) 评论(0) 推荐(0) 编辑
摘要: npm v2中安装依赖都是树状的层级关系,而v3则是平级关系 如果c模块中同样需要b模块,但是与a中b模块不是同个版本,则这时就采用的树状结构,层层嵌套 使用 tree -d node_modules 查看树状结构 删除依赖: 原因是b V1.0已经是一个顶级的依赖,我们不能装B V2.0作为一个顶 阅读全文
posted @ 2017-04-01 10:09 jay- 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 依赖hell 相反,试图解决模块B到一个单一版本的,NPM使模块B的两个版本到树,需要它的模块嵌套在每个版本。 使用npm ls可以看到使用它们之间的关系 使用npm ls --depth=0 查看其他模块对一个模块的依赖, npm ls mode-a 阅读全文
posted @ 2017-04-01 10:02 jay- 阅读(161) 评论(0) 推荐(0) 编辑
摘要: var data = [ {id:1,title:'a',pid:0}, {id:2,title:'a1',pid:1}, {id:3,title:'a11',pid:2}, {id:4,title:'a12',pid:2}, {id:5,title:'a2',pid:1}, {id:6,title 阅读全文
posted @ 2017-03-31 14:25 jay- 阅读(438) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 10 下一页