会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
江山一族
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
···
25
下一页
2019年2月28日
promisify,promisifyAll,promise.all实现原理
摘要: 1.promisify function toPrimisify (fn){ return function (...args){ return new Promise(function(resolve,reject){ fn(...args,function(err,data){ err?reje
阅读全文
posted @ 2019-02-28 22:21 江山一族
阅读(1439)
评论(0)
推荐(0)
2019年2月20日
nodejs, 阿里oss上传下载图片
摘要: const archiver = require('archiver')const send = require('koa-send')const oss = require('ali-oss').Wrapper const path = require('path') const uuid = r
阅读全文
posted @ 2019-02-20 10:54 江山一族
阅读(2137)
评论(0)
推荐(0)
2019年2月18日
vue自定义键盘事件
摘要: //自定义全局按键修饰符 Vue.config.keyCodes.f2 = 13;//enter为13此时F2==ENTER 调用;@keyup.f2='addData()'
阅读全文
posted @ 2019-02-18 23:26 江山一族
阅读(893)
评论(0)
推荐(0)
vue解决加载闪烁问题
摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <style> [v-cloak]{ display: none; } </style> </head> <body> <div id="app"> <!-- 解决
阅读全文
posted @ 2019-02-18 22:58 江山一族
阅读(3038)
评论(0)
推荐(0)
2019年1月21日
vue定义全局组件
摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <link href="https://cdn.bootcss.com/twitter-bootstrap/4.1.3/css/bootstrap.css" rel
阅读全文
posted @ 2019-01-21 23:02 江山一族
阅读(599)
评论(0)
推荐(0)
vue动态切换组件
摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> </head> <body> <div id="app"> <a href="#" @click.prevent="cname='login'">登录</a> <a
阅读全文
posted @ 2019-01-21 23:01 江山一族
阅读(715)
评论(0)
推荐(0)
jade模版js中接收express的res.render
摘要: router: router.get('/', function(req, res, next) { res.render('index', { title:{name:'aaa',age:23} });}); jade: extends layout block content h1= title
阅读全文
posted @ 2019-01-21 18:02 江山一族
阅读(944)
评论(0)
推荐(0)
2019年1月17日
js两个箭头 =>()=>()
摘要: request(_ action)let withStatus =status =>action=> R.merge(action, (status])let request = withStatus (REQUEST) var withStatus = function(status) [retu
阅读全文
posted @ 2019-01-17 15:41 江山一族
阅读(1377)
评论(0)
推荐(0)
2018年12月20日
docker备份mongodb数据,导入导出
摘要: 场景:服务器要升级,之前在linux部署的mongodb没有用docker,升级后,mongodb要用docker部署,并将原有的mongodb数据导入到docker部署的mongodb中。 1.在linux安装的mongodb文件下导出mongodb数据 ./bin/mongodump -h ip
阅读全文
posted @ 2018-12-20 17:00 江山一族
阅读(6896)
评论(0)
推荐(0)
2018年12月12日
nodejs+koa在header里面添加header信息
摘要: 参考:https://koa.bootcss.com/ ctx.append('resultCode', '0000'); ctx.append('resultMessage', 'success'); 打印ctx,对象,就看到response中的header已经有值了
阅读全文
posted @ 2018-12-12 15:55 江山一族
阅读(4348)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
25
下一页
公告