腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
返回腾讯云官网
前端小叙
专栏作者
举报
407
文章
780797
阅读量
44
订阅数
订阅专栏
申请加入专栏
全部文章(407)
编程算法(52)
https(52)
网络安全(46)
javascript(42)
html(38)
其他(34)
vue.js(27)
css(23)
node.js(16)
jquery(14)
git(11)
http(11)
开发(10)
事件(10)
vue3(9)
函数(9)
数组(9)
json(8)
打包(8)
npm(8)
对象(8)
api(7)
网站(7)
webpack(7)
解决方案(7)
官方文档(6)
windows(6)
console(6)
浏览器(6)
ios(5)
react(5)
渲染(5)
import(5)
响应式(5)
字符串(5)
java(4)
android(4)
数据库(4)
eslint(4)
二叉树(4)
小程序(4)
leetcode(4)
width(4)
window(4)
变量(4)
排序(4)
配置(4)
算法(4)
php(3)
bootstrap(3)
github(3)
mongodb(3)
容器(3)
flutter(3)
add(3)
default(3)
error(3)
excel(3)
input(3)
vite(3)
递归(3)
定时器(3)
动画(3)
入门(3)
数据(3)
调试(3)
异步(3)
bash(2)
ecmascript(2)
sql(2)
ide(2)
linux(2)
nginx(2)
bash 指令(2)
mapreduce(2)
koa(2)
stylelint(2)
lodash(2)
存储(2)
开源(2)
缓存(2)
html5(2)
面向对象编程(2)
tcp/ip(2)
安全(2)
数据结构(2)
auto(2)
base64(2)
bind(2)
bug(2)
class(2)
container(2)
dom(2)
icon(2)
iview(2)
max(2)
object(2)
output(2)
plugin(2)
position(2)
promise(2)
ref(2)
route(2)
select(2)
src(2)
target(2)
typeerror(2)
undefined(2)
var(2)
遍历(2)
插件(2)
后台(2)
链表(2)
连接(2)
设计(2)
视频(2)
系统(2)
性能(2)
移动端(2)
作用域(2)
iphone(1)
go(1)
lua(1)
regex(1)
xml(1)
ajax(1)
svn(1)
文件存储(1)
命令行工具(1)
云数据库 MongoDB(1)
SSL 证书(1)
腾讯云测试服务(1)
express(1)
rollup.js(1)
babel.js(1)
爬虫(1)
shell(1)
wordpress(1)
正则表达式(1)
ftp(1)
cdn(1)
iis(1)
nat(1)
图片加速(1)
es(1)
absolute(1)
addeventlistener(1)
background(1)
border(1)
callback(1)
center(1)
chrome(1)
click(1)
commit(1)
commonjs(1)
component(1)
components(1)
config(1)
countdown(1)
delay(1)
display(1)
duration(1)
el(1)
event(1)
export(1)
fetch(1)
filter(1)
flex(1)
foreach(1)
function(1)
gradient(1)
grid(1)
handle(1)
height(1)
hidden(1)
href(1)
iframe(1)
image(1)
iterator(1)
load(1)
location(1)
mac(1)
map(1)
math(1)
matrix(1)
meta(1)
methods(1)
min(1)
mock(1)
module(1)
nan(1)
null(1)
onload(1)
overflow(1)
package(1)
pagination(1)
path(1)
popup(1)
prototype(1)
push(1)
readonly(1)
reduce(1)
resize(1)
return(1)
root(1)
script(1)
scroll(1)
scrolltop(1)
self(1)
setinterval(1)
sleep(1)
state(1)
status(1)
sum(1)
text(1)
timeout(1)
types(1)
ui(1)
url(1)
vant(1)
video(1)
watch(1)
xlsx(1)
备份(1)
闭包(1)
编译(1)
博客(1)
布局(1)
操作系统(1)
测试(1)
代理(1)
登录(1)
动态规划(1)
工具类(1)
环境搭建(1)
技巧(1)
脚本(1)
接口(1)
镜像(1)
日志(1)
设计模式(1)
手机(1)
搜索(1)
统计(1)
推送(1)
拖拽(1)
网络(1)
优化(1)
原理(1)
源码(1)
原型链(1)
终端(1)
搜索文章
搜索
搜索
关闭
koa-route模块
koa
route
const Koa = require('koa'); const route = require('koa-route'); const app = new Koa(); const about = ctx => { ctx.response.body = 'Hello World111'; }; const main = ctx => { ctx.response.body = 'Hello World222'; }; const details = (ctx,id) => {
蓓蕾心晴
2018-04-12
603
0
koa2入门学习
koa
http
javascript
node.js
koa模块 koa-route 路由 route.get("路径",路由函数) koa-static 静态资源加载 const serve(路径) koa-compose 中间件合成模块 koa-body 提取表单post请求键值对,处理上传文件 上下文context的response和request ctx.response.body //返回的主体内容 ctx.response.redirect //重定向 ctx.response.type //返回的MIME类型 ctx.re
蓓蕾心晴
2018-04-12
613
0
没有更多了
社区活动
腾讯技术创作狂欢月
“码”上创作 21 天,分 10000 元奖品池!
立即发文
Python精品学习库
代码在线跑,知识轻松学
立即查看
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
立即体验
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
立即查看
领券
问题归档
专栏文章
快讯文章归档
关键词归档
开发者手册归档
开发者手册 Section 归档