上一页 1 2 3 4 5 6 7 8 9 10 ··· 25 下一页
摘要: 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 江山一族 阅读(1419) 评论(0) 推荐(0) 编辑
摘要: 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 江山一族 阅读(2094) 评论(0) 推荐(0) 编辑
摘要: //自定义全局按键修饰符 Vue.config.keyCodes.f2 = 13;//enter为13此时F2==ENTER 调用;@keyup.f2='addData()' 阅读全文
posted @ 2019-02-18 23:26 江山一族 阅读(868) 评论(0) 推荐(0) 编辑
摘要: <!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 江山一族 阅读(3023) 评论(0) 推荐(0) 编辑
摘要: <!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 江山一族 阅读(592) 评论(0) 推荐(0) 编辑
摘要: <!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 江山一族 阅读(705) 评论(0) 推荐(0) 编辑
摘要: 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 江山一族 阅读(934) 评论(0) 推荐(0) 编辑
摘要: 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 江山一族 阅读(1365) 评论(0) 推荐(0) 编辑
摘要: 场景:服务器要升级,之前在linux部署的mongodb没有用docker,升级后,mongodb要用docker部署,并将原有的mongodb数据导入到docker部署的mongodb中。 1.在linux安装的mongodb文件下导出mongodb数据 ./bin/mongodump -h ip 阅读全文
posted @ 2018-12-20 17:00 江山一族 阅读(6819) 评论(0) 推荐(0) 编辑
摘要: 参考:https://koa.bootcss.com/ ctx.append('resultCode', '0000'); ctx.append('resultMessage', 'success'); 打印ctx,对象,就看到response中的header已经有值了 阅读全文
posted @ 2018-12-12 15:55 江山一族 阅读(4279) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 25 下一页