dennyak47

Results 5 comments of dennyak47

@JacksonGL Thanks for the detailed reply. I have a question about how to debug memory leak problem in nodejs. **When should I take the three snapshots of my leaked nodejs...

与egg目录相同目录下,放一个ps1脚本 '''ps1 $packageJsonPath = "$PSScriptRoot\egg\package.json" $packageJsonContent = Get-Content -Path $packageJsonPath -Raw | ConvertFrom-Json if ($packageJsonContent.scripts.stop -match '--title=([^"]+)') { $title = $matches[1] Write-Output "stopping egg application with --title=$title" $processes = Get-Process...

> 在根目录app/文件夹下,新增extend文件夹,新建helper.ts文件 > > module.exports = { getHeader() { const { ctx } = this } } > > 然后全局就能用ctx.helper.getHeader获取了 agent.ts 里面是不能获取 helper 的。我用了 extend/agent.ts来扩展。 但是 service 如何在 agent.ts 里面获取呢?