这样?
if ( this.url == '/'){
//todo
} else if (this.url == 'todo'){
//todo
}
1
xream 2015-09-04 14:14:24 +08:00 1
koa 的 wiki 里有 https://github.com/koajs/koa/wiki#routing-and-mounting
|