eggJS 代碼調試,很詳細!

1. 使用 日誌輸出 進行調試 控制檯輸出 console.log(); // haha 使用 logger 模塊 框架內置了日誌 功能,使用 logger.debug() 輸出調試信息,推薦在應用代碼中使用它。 **// controller this.logger.debug(‘current user: %j’, this.user); // service this.ctx.logger.
相關文章
相關標籤/搜索