摘要:
1.promisify function toPrimisify (fn){ return function (...args){ return new Promise(function(resolve,reject){ fn(...args,function(err,data){ err?reje 阅读全文
摘要:
const archiver = require('archiver')const send = require('koa-send')const oss = require('ali-oss').Wrapper const path = require('path') const uuid = r 阅读全文
摘要:
//自定义全局按键修饰符 Vue.config.keyCodes.f2 = 13;//enter为13此时F2==ENTER 调用;@keyup.f2='addData()' 阅读全文
摘要:
<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <style> [v-cloak]{ display: none; } </style> </head> <body> <div id="app"> <!-- 解决 阅读全文
摘要:
<!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 阅读全文
摘要:
<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> </head> <body> <div id="app"> <a href="#" @click.prevent="cname='login'">登录</a> <a 阅读全文
摘要:
router: router.get('/', function(req, res, next) { res.render('index', { title:{name:'aaa',age:23} });}); jade: extends layout block content h1= title 阅读全文
摘要:
request(_ action)let withStatus =status =>action=> R.merge(action, (status])let request = withStatus (REQUEST) var withStatus = function(status) [retu 阅读全文
摘要:
场景:服务器要升级,之前在linux部署的mongodb没有用docker,升级后,mongodb要用docker部署,并将原有的mongodb数据导入到docker部署的mongodb中。 1.在linux安装的mongodb文件下导出mongodb数据 ./bin/mongodump -h ip 阅读全文
摘要:
参考:https://koa.bootcss.com/ ctx.append('resultCode', '0000'); ctx.append('resultMessage', 'success'); 打印ctx,对象,就看到response中的header已经有值了 阅读全文