egg.js之extend擴展文件的創建與使用
app/extend/xxx.js下的各this指向
application.js —— this指向:app對象
調用:this.app
context.js —— this指向:ctx對象
調用:this.ctx
request.js —— this指向:ctx.request對象
調用:this.ctx.request
response.js —— this指向:ctx.response對象
調用:this.ctx.response
helper.js —— this指向:ctx.helper對象
調用:this.ctx.helper